Skip to content

Commit c8d6247

Browse files
committed
MSA-15117: Add do-tag.yml
1 parent fa51be4 commit c8d6247

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/do-tag.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 🚀 Do tag.
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
branch:
6+
description: 'Branch name (e.g. release/3.3.0)'
7+
required: true
8+
tag:
9+
description: 'Tag name (e.g., v3.3.1)'
10+
required: true
11+
12+
jobs:
13+
do-tag:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v6
18+
with:
19+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
20+
21+
- name: Switch to the branch and create a tag
22+
run: |
23+
git config user.name "github-actions"
24+
git config user.email "github-actions@github.com"
25+
git fetch origin "${{ github.event.inputs.branch }}"
26+
git fetch -p -P -t -f
27+
git checkout "${{ github.event.inputs.branch }}"
28+
git tag "${{ github.event.inputs.tag }}"
29+
git push origin "${{ github.event.inputs.tag }}"

0 commit comments

Comments
 (0)