Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 8ac3b30

Browse files
committed
ci(major-tag): init
1 parent 1a21bec commit 8ac3b30

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/major-tag.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Update Main Version
2+
run-name: Move ${{ github.event.inputs.major_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+
major_version:
11+
type: choice
12+
description: The major version to update
13+
options:
14+
- v2
15+
16+
jobs:
17+
tag:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Git config
24+
run: |
25+
git config user.name "github-actions[bot]"
26+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
27+
- name: Tag new target
28+
run: git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }}
29+
- name: Push new tag
30+
run: git push origin ${{ github.event.inputs.major_version }} --force

0 commit comments

Comments
 (0)