v2.0.0 #1
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: Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update major version tag | |
run: | | |
version=$(echo "${{ github.ref }}" | sed -r "s/^.*(v[0-9]).*$/\1/") | |
echo "Major Version: $version" | |
git config --local user.email "github-actions" | |
git config --local user.name "[email protected]" | |
git tag -fa $version -m "Update $version tag" | |
git push -f origin $version |