mirror of
https://github.com/actions/checkout.git
synced 2024-11-14 00:08:13 +00:00
Update update-main-version.yml
This commit is contained in:
parent
24cb908017
commit
cd6a9fd493
11
.github/workflows/update-main-version.yml
vendored
11
.github/workflows/update-main-version.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
name: Update Main Version
|
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:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -7,11 +7,12 @@ on:
|
|||||||
target:
|
target:
|
||||||
description: The tag or reference to use
|
description: The tag or reference to use
|
||||||
required: true
|
required: true
|
||||||
main_version:
|
major_version:
|
||||||
type: choice
|
type: choice
|
||||||
description: The main version to update
|
description: The major version to update
|
||||||
options:
|
options:
|
||||||
- v3
|
- v3
|
||||||
|
- v2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tag:
|
tag:
|
||||||
@ -25,6 +26,6 @@ jobs:
|
|||||||
git config user.name github-actions
|
git config user.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
- name: Tag new target
|
- 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
|
- name: Push new tag
|
||||||
run: git push origin ${{ github.event.inputs.main_version }} --force
|
run: git push origin ${{ github.event.inputs.major_version }} --force
|
||||||
|
Loading…
Reference in New Issue
Block a user