File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Create Tag
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ branch :
7+ description : ' Branch or ref to create tag from'
8+ required : true
9+ type : string
10+ tag :
11+ description : ' Tag name to create (e.g. v1.0.0)'
12+ required : true
13+ type : string
14+
15+ jobs :
16+ create-tag :
17+ name : Create and push tag
18+ runs-on : ubuntu-latest
19+ permissions :
20+ contents : write
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v4
24+ with :
25+ ref : ${{ inputs.branch }}
26+ fetch-depth : 0
27+
28+ - name : Create and push tag
29+ run : |
30+ git config user.name "github-actions[bot]"
31+ git config user.email "github-actions[bot]@users.noreply.github.com"
32+ git tag "${{ inputs.tag }}"
33+ git push origin "${{ inputs.tag }}"
You can’t perform that action at this time.
0 commit comments