[build] Support release tags that shadow branch names (#17409)

Authored by: InvalidUsernameException
This commit is contained in:
InvalidUsernameException
2026-08-15 20:54:24 +00:00
committed by GitHub
parent 3f78dc4797
commit d2dcbfc574
+1 -1
View File
@@ -316,7 +316,7 @@ jobs:
if: env.TARGET_REPO == github.repository if: env.TARGET_REPO == github.repository
run: | run: |
git tag "${TARGET_TAG}" "${HEAD_SHA}" git tag "${TARGET_TAG}" "${HEAD_SHA}"
git push origin "${TARGET_TAG}" git push origin "refs/tags/${TARGET_TAG}"
sleep 5 # Enough time to cover git-push vs gh-release-create race condition sleep 5 # Enough time to cover git-push vs gh-release-create race condition
- name: Publish release - name: Publish release