Skip to content

Commit 7477ada

Browse files
authored
Add workflow to release major version (#13)
1 parent e08bbfc commit 7477ada

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Update main version
2+
3+
run-name: Move ${{ github.event.inputs.major_version }} to ${{ github.event.inputs.target }}
4+
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
target:
9+
description: The tag to use
10+
required: true
11+
major_version:
12+
description: The version to update
13+
type: choice
14+
options:
15+
- v1
16+
17+
jobs:
18+
tag:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Git config
26+
run: |
27+
git config user.name Guillaume ROUCHON
28+
git config user.email [email protected]
29+
30+
- name: Tag new major version
31+
run: git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }}
32+
33+
- name: Push new major version
34+
run: git push origin ${{ github.event.inputs.major_version }} --force

0 commit comments

Comments
 (0)