20 lines
427 B
YAML
20 lines
427 B
YAML
name: Cleanup release branch
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
cleanup:
|
|
if: ${{ github.event.head_commit.message == 'cleanup release branch' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Delete test release branch
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: gh api -X DELETE "repos/${GITHUB_REPOSITORY}/git/refs/heads/test%2Frelease-v1.0.0"
|