We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93ea575 commit 8230315Copy full SHA for 8230315
1 file changed
.github/workflows/update-main-version.yml
@@ -0,0 +1,30 @@
1
+name: Update Main Version
2
+run-name: Move ${{ github.event.inputs.main_version }} to ${{ github.event.inputs.target }}
3
+
4
+on:
5
+ workflow_dispatch:
6
+ inputs:
7
+ target:
8
+ description: The tag or reference to use
9
+ required: true
10
+ main_version:
11
+ type: choice
12
+ description: The main version to update
13
+ options:
14
+ - v3
15
16
+jobs:
17
+ tag:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v3
21
+ with:
22
+ fetch-depth: 0
23
+ - name: Git config
24
+ run: |
25
+ git config user.name github-actions
26
+ git config user.email [email protected]
27
+ - name: Tag new target
28
+ run: git tag -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }}
29
+ - name: Push new tag
30
+ run: git push origin ${{ github.event.inputs.main_version }} --force
0 commit comments