ci: harden update-major-version workflow inputs (#4535)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Peter EvansandCopilot App authored and GitHub committed 2026-11-24 09:10:03 +00:00
1 parent 3ffccacd46
commit b457f7bfef
1 file changed
+3 -1
+3 -1
View File
@@ -27,7 +27,9 @@ jobs:
git config user.name actions-bot
git config user.email actions-bot@users.noreply.github.com
- name: Tag new target
run: git tag -f "${INPUT_MAIN_VERSION}" "${INPUT_TARGET}"
run: |
sha=$(git rev-parse --verify --end-of-options "${INPUT_TARGET}^{commit}")
git tag -f "${INPUT_MAIN_VERSION}" "${sha}"
env:
INPUT_MAIN_VERSION: ${{ github.event.inputs.main_version }}
INPUT_TARGET: ${{ github.event.inputs.target }}