Skip to content

Commit 53c00e3

Browse files
committed
[infra] add create tag workflow
1 parent 3466d5a commit 53c00e3

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/create_tag.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Create Tag
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'Tag to create (e.g., v1.0.0)'
8+
required: true
9+
type: string
10+
force:
11+
description: 'Force overwrite existing tag'
12+
required: false
13+
type: boolean
14+
default: false
15+
message:
16+
description: 'Tag message (optional, creates annotated tag)'
17+
required: false
18+
type: string
19+
20+
concurrency:
21+
group: manual-tag-${{ inputs.tag }}
22+
cancel-in-progress: true
23+
24+
permissions:
25+
contents: write
26+
27+
jobs:
28+
create-tag:
29+
name: Create Tag
30+
runs-on: ${{ vars.RUNS_ON }}
31+
steps:
32+
- name: Create tag from main branch
33+
id: tag
34+
uses: Mad-Pixels/github-workflows/actions/github-create-tag@main
35+
with:
36+
tag: ${{ inputs.tag }}
37+
force: ${{ inputs.force }}
38+
branch: 'main'
39+
message: ${{ inputs.message }}
40+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)