v2.0.2 #10
Workflow file for this run
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
name: 'On Release' | |
on: | |
release: | |
types: [published] | |
permissions: | |
contents: write | |
jobs: | |
update-tag: | |
name: 'Update major version tag to latest version' | |
runs-on: ubuntu-latest | |
env: | |
TAG_NAME: ${{github.event.release.tag_name}} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update major version tag | |
run: | | |
major=`echo $TAG_NAME | cut -d. -f1` | |
git tag $major | |
git push -f origin $major |