Skip to content

v2.0.0

v2.0.0 #8

Workflow file for this run

name: Update major version branch on release
on:
release:
types: [published]
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-latest
permissions:
actions: write # for releases that contain changes to the workflows
contents: write # for git push
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Update major version branch
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
branch=${RELEASE_TAG%%.*}
git push origin HEAD:$branch