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: Tag releases with minor and major version | |
on: | |
release: | |
types: [released] | |
jobs: | |
tag-v1: | |
name: Tag v1 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update tag | |
run: | | |
major_tag="$(python .github/scripts/get_version.py "${GITHUB_REF}" major)" | |
minor_tag="$(python .github/scripts/get_version.py "${GITHUB_REF}" minor)" | |
git tag $major_tag | |
git tag $minor_tag | |
git push origin HEAD:refs/heads/master --tags --force | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |