v0.1.1 #2
Workflow file for this run
This file contains hidden or 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: Sync major version tag | |
| permissions: {} | |
| on: | |
| release: | |
| types: | |
| - created | |
| jobs: | |
| sync-release-branch: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| if: startsWith(github.event.release.tag_name, 'v0') | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: true | |
| fetch-depth: 0 | |
| ref: v0 | |
| # The email is derived from the bots user id, | |
| # found here: https://api.github.com/users/github-actions%5Bbot%5D | |
| - name: Configure Git | |
| run: | | |
| git config user.name github-actions[bot] | |
| git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
| - name: Sync Release Branch | |
| run: | | |
| git fetch --tags | |
| git checkout v0 | |
| git reset --hard ${GITHUB_REF} | |
| git push --force |