Ready to be 4.0.0-alpha2 #41
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: Update major version and latest tag | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: nowsprinting/check-version-format-action@v3 | |
id: version | |
with: | |
prefix: v | |
- name: Update major version and latest tag | |
run: | | |
git push --force origin 'HEAD:refs/heads/${{ steps.version.outputs.major_prerelease }}' | |
git push --force origin 'HEAD:refs/heads/latest' | |
if: steps.version.outputs.is_valid == 'true' |