Skip to content

Commit

Permalink
better comments for tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-butterley committed May 17, 2024
1 parent 14184a9 commit eec9b07
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/update-major-tag.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Update major version tag on minor release
run-name: Move ${{ github.event.inputs.major_version }} to ${{ github.event.inputs.target }}
run-name: Set ${{ github.event.inputs.major_version }} to point to ${{ github.event.inputs.target }}

# Each time there is a minor release, this workflow can be manually run in order to update the major release tag to point to the latest release.
# Can also be used for rollback if the latest release is found to have problems.
Expand All @@ -16,6 +16,7 @@ on:
options:
- v1-alpha
- v1
# add items to this list when new major releases are released

jobs:
tag:
Expand All @@ -30,8 +31,9 @@ jobs:
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
# bot user details: https://api.github.com/users/github-actions%5Bbot%5D
- name: Tag new 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.major_version }} --force
run: git push origin ${{ github.event.inputs.major_version }} --force

# bot user details: https://api.github.com/users/github-actions%5Bbot%5D

0 comments on commit eec9b07

Please # to comment.