diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b6bca36e30..c6dcf7f671e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,7 +60,7 @@ jobs: - name: Clean up and validate ${{ env.TAG_NAME }} tag name shell: bash run: | - export iota_tag=$(echo ${{ env.TAG_NAME }} | sed s/'refs\/tags\/'//) + export iota_tag=$(echo ${{ env.TAG_NAME }} | sed s/'refs\/tags\/'// | sed s/'refs\/heads\/'// | sed s/'sc-platform\/'//) [[ "${iota_tag}" == "develop" ]] && echo "tag cannot be equal to 'develop'" && exit 1 echo "iota_tag=${iota_tag}" >> $GITHUB_ENV export iota_version=$(echo ${iota_tag} | sed -e 's/mainnet-v//' -e 's/testnet-v//')