Skip to content

Commit cd6a9fd

Browse files
authored
Update update-main-version.yml
1 parent 24cb908 commit cd6a9fd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/update-main-version.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
name: Update Main Version
2-
run-name: Move ${{ github.event.inputs.main_version }} to ${{ github.event.inputs.target }}
2+
run-name: Move ${{ github.event.inputs.major_version }} to ${{ github.event.inputs.target }}
33

44
on:
55
workflow_dispatch:
66
inputs:
77
target:
88
description: The tag or reference to use
99
required: true
10-
main_version:
10+
major_version:
1111
type: choice
12-
description: The main version to update
12+
description: The major version to update
1313
options:
1414
- v3
15+
- v2
1516

1617
jobs:
1718
tag:
@@ -25,6 +26,6 @@ jobs:
2526
git config user.name github-actions
2627
git config user.email github-actions@github.com
2728
- name: Tag new target
28-
run: git tag -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }}
29+
run: git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }}
2930
- name: Push new tag
30-
run: git push origin ${{ github.event.inputs.main_version }} --force
31+
run: git push origin ${{ github.event.inputs.major_version }} --force

0 commit comments

Comments
 (0)