File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1010 release-config-name :
1111 required : true
1212 type : string
13+ update-major-tag :
14+ required : false
15+ type : boolean
16+ default : true
1317 secrets :
1418 github-token :
1519 required : true
6266 run : |
6367 short_tag=$(echo ${{ steps.release-drafter.outputs.tag_name }} | cut -d. -f1)
6468 echo "SHORT_TAG=$short_tag" >> "$GITHUB_OUTPUT"
69+
70+ update_major_tag :
71+ needs : create_release
72+ if : ${{ inputs.update-major-tag && needs.create_release.outputs.full-tag != '' }}
73+ runs-on : ubuntu-latest
74+ permissions :
75+ contents : write
76+ steps :
77+ - name : Harden the runner (Audit all outbound calls)
78+ uses : step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
79+ with :
80+ egress-policy : audit
81+
82+ - name : Checkout Repo
83+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
84+ with :
85+ fetch-tags : true
86+ ref : ${{ needs.create_release.outputs.full-tag }}
87+ persist-credentials : true
88+
89+ - name : Force update major tag
90+ run : |
91+ git tag -f "${SHORT}" "${FULL}"
92+ git push -f origin "${SHORT}"
93+ env :
94+ SHORT : ${{ needs.create_release.outputs.short-tag }}
95+ FULL : ${{ needs.create_release.outputs.full-tag }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,3 +19,6 @@ ignore.*
1919.env
2020.env.test
2121* .pem
22+
23+ # ai
24+ ** /.claude /* .local. *
Original file line number Diff line number Diff line change 1313 # The name of the configuration file to use, default is release-drafter.yml
1414 # from the release-drafter/release-drafter GitHub Action
1515 release-config-name : release-drafter.yml
16+ # Boolean flag whether to update major tag to latest full semver tag, default is true
17+ update-major-tag : true
1618 secrets :
1719 # The GitHub token to use
1820 github-token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments