Skip to content

Commit

Permalink
Update update-main-version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TingluoHuang authored Mar 24, 2023
1 parent 24cb908 commit cd6a9fd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/update-main-version.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: Update Main Version
run-name: Move ${{ github.event.inputs.main_version }} to ${{ github.event.inputs.target }}
run-name: Move ${{ github.event.inputs.major_version }} to ${{ github.event.inputs.target }}

on:
workflow_dispatch:
inputs:
target:
description: The tag or reference to use
required: true
main_version:
major_version:
type: choice
description: The main version to update
description: The major version to update
options:
- v3
- v2

jobs:
tag:
Expand All @@ -25,6 +26,6 @@ jobs:
git config user.name github-actions
git config user.email github-actions@github.com
- name: Tag new target
run: git tag -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }}
run: git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }}
- name: Push new tag
run: git push origin ${{ github.event.inputs.main_version }} --force
run: git push origin ${{ github.event.inputs.major_version }} --force

0 comments on commit cd6a9fd

Please # to comment.