Skip to content

Merge pull request #55 from katiem0/trunk #11

Merge pull request #55 from katiem0/trunk

Merge pull request #55 from katiem0/trunk #11

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Update major release branch
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
major=${tag%%.*}
gh api -X PATCH /repos/"$GITHUB_REPOSITORY"/git/refs/heads/"$major" -f sha="$GITHUB_SHA"