mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-12 05:36:40 +00:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
574 B
YAML
25 lines
574 B
YAML
name: "🚫 Cancel: Runs on Branch Delete"
|
|
|
|
on:
|
|
delete:
|
|
|
|
permissions:
|
|
actions: write
|
|
contents: read
|
|
|
|
jobs:
|
|
cancel-branch-runs:
|
|
if: ${{ github.event.ref_type == 'branch' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Cancel active workflow runs for deleted branch
|
|
shell: bash
|
|
env:
|
|
BRANCH: ${{ github.event.ref }}
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
REPOSITORY: ${{ github.repository }}
|
|
run: bash scripts/github/cancel_deleted_branch_runs.sh
|