Files
computer-playbook/.github/workflows/entry-pull-request-cancel.yml
T
dependabot[bot] bdd920fd85 chore(deps): bump actions/checkout from 4.2.2 to 7.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.2 to 7.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v4.2.2...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-09 02:07:38 +00:00

31 lines
858 B
YAML

name: "🚫 Cancel: PR Runs on Close"
on:
pull_request_target:
types:
- closed
- converted_to_draft
permissions:
actions: write
contents: read
jobs:
cancel-pr-runs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7.0.0
- name: Cancel active workflow runs for closed PR
shell: bash
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
PR_HEAD_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY: ${{ github.repository }}
CURRENT_RUN_ID: ${{ github.run_id }}
run: bash scripts/github/cancel/pull_request_runs.sh