-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new
update-latest-release-tag
workflow
- Loading branch information
1 parent
c478e11
commit 32cf2a2
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Update Latest Release Tag | ||
run-name: Update ${{ github.event.inputs.major_version_tag }} with ${{ github.event.inputs.source_tag }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
source_tag: | ||
description: 'The tag or reference to use as the source (example: v8.0.0)' | ||
required: true | ||
default: vX.X.X | ||
major_version_tag: | ||
description: 'The major release tag to update with the source (example: v8)' | ||
required: true | ||
default: vX | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
tag: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: git config | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- name: tag new target | ||
run: git tag -f ${{ github.event.inputs.major_version_tag }} ${{ github.event.inputs.source_tag }} | ||
|
||
- name: push new tag | ||
run: git push origin ${{ github.event.inputs.major_version_tag }} --force |