mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 09:04:55 +00:00
* chore: switch to namespace runners * fix: sudo * fix: move to medium runners for frontend * chore: bump all actions, remove old turbo cache * fix: bump frontend runners to large * fix: wrangler * fix: wrangler version, again * chore: namespace windows and mac runners * fix: revert tombi bump * chore: tweak caching
23 lines
534 B
YAML
23 lines
534 B
YAML
name: Cancel PR Workflows on Merge
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- closed
|
|
|
|
permissions:
|
|
actions: write
|
|
|
|
jobs:
|
|
cancel:
|
|
if: github.event.pull_request.merged == true
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Cancel Previous Runs
|
|
uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1
|
|
with:
|
|
workflow_id: all
|
|
access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
ignore_sha: true
|
|
pr_number: ${{ github.event.pull_request.number }}
|