mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-12-02 04:40:29 +00:00
ci: harden update-major-version workflow inputs (#4535)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
3ffccacd46
commit
b457f7bfef
1 file changed
+3
-1
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user