We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8aef84 commit 0bf599fCopy full SHA for 0bf599f
1 file changed
.github/workflows/create-tag.yml
@@ -0,0 +1,33 @@
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
13
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 }}"
0 commit comments