File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update Major Version
2
+ run-name : Update ${{ github.event.inputs.main_version }} to ${{ github.event.inputs.target }}
3
+
4
+ on :
5
+ workflow_dispatch :
6
+ inputs :
7
+ target :
8
+ description : The target tag or reference
9
+ required : true
10
+ main_version :
11
+ type : choice
12
+ description : The major version tag to update
13
+ options :
14
+ - v2
15
+
16
+ jobs :
17
+ tag :
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - uses : actions/checkout@v3
21
+ with :
22
+ token : ${{ secrets.ACTIONS_BOT_TOKEN }}
23
+ fetch-depth : 0
24
+ - name : Git config
25
+ run : |
26
+ git config user.name actions-bot
27
+ git config user.email [email protected]
28
+ - name : Tag new target
29
+ run : git tag -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }}
30
+ - name : Push new tag
31
+ run : git push origin ${{ github.event.inputs.main_version }} --force
You can’t perform that action at this time.
0 commit comments