Skip to content

Merge pull request #53 from v1v/feature/attestations #10

Merge pull request #53 from v1v/feature/attestations

Merge pull request #53 from v1v/feature/attestations #10

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"