diff --git a/.github/workflows/nightly-release-macos.yaml b/.github/workflows/nightly-release-macos.yaml index ca6f85e02638c..5c59922d6d25e 100644 --- a/.github/workflows/nightly-release-macos.yaml +++ b/.github/workflows/nightly-release-macos.yaml @@ -63,14 +63,14 @@ jobs: run: | old_tag_name=$(git describe --tags --abbrev=0) echo "old_tag_name=${old_tag_name}" >> $GITHUB_OUTPUT - git tag -d ${{ steps.old-tag.outputs.old_tag_name }} - git push origin :refs/tags/${{ steps.old-tag.outputs.old_tag_name }} + git tag -d $(echo ${{ steps.old-tag.outputs.old_tag_name }}) + git push origin :refs/tags/$(echo ${{ steps.old-tag.outputs.old_tag_name }}) - name: Create new tag run: | - new_tag_name=$(echo ${{ env.old_tag_name }} | sed -E 's/([0-9]+\.[0-9]+\.[0-9]+)-0\.nightly\.([0-9]+)\.([0-9]+)\.([0-9]+)/\1-nightly\2\3\4/') - git tag ${new_tag_name} - git push origin ${new_tag_name} + new_tag_name=$(echo ${{ steps.old-tag.outputs.old_tag_name }} | sed -E 's/([0-9]+\.[0-9]+\.[0-9]+)-0\.nightly\.([0-9]+)\.([0-9]+)\.([0-9]+)/\1-nightly\2\3\4/') + git tag $(echo ${new_tag_name}) + git push origin $(echo ${new_tag_name}) # - name: Set up remote cache access # env: