File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 6868 - uses : actions/checkout@v4
6969 with :
7070 fetch-depth : 0 # required to see tags and commits
71- ref : ${{ github.sha }} # lock to triggered commit ('github.ref' is dynamic)
71+ ref : ${{ github.ref }} # dont lock to sha (action needs to push)
72+ token : ${{ secrets.TOKEN || github.token }}
7273
7374 # PYTHON ONLY: setup python
7475 - if : inputs.project-type == 'python'
@@ -90,13 +91,10 @@ jobs:
9091
9192 - if : steps.next-version.outputs.version != ''
9293 name : Tag new version
93- env :
94- AUTH_TOKEN : ${{ secrets.TOKEN || github.token }}
9594 run : |
9695 set -euo pipefail; echo "now: $(date -u +"%Y-%m-%dT%H:%M:%S.%3N")"
97- echo "::add-mask::${AUTH_TOKEN}" # logging safety
9896 git tag v${{ steps.next-version.outputs.version }} # note: prepend 'v'
99- git push https://x-access-token:${AUTH_TOKEN}@github.com/${{ github.repository }} --tags
97+ git push origin --tags
10098
10199 # PYTHON ONLY: auto-build
102100 - if : |
You can’t perform that action at this time.
0 commit comments