homebrew-core/.github/workflows/autocancel.yml

20 lines
443 B
YAML

name: Cancel previous runs
on:
workflow_dispatch:
schedule:
# Once every 15 minutes
- cron: '*/15 * * * *'
jobs:
autocancel:
if: github.repository == 'Homebrew/homebrew-core'
runs-on: ubuntu-latest
steps:
- name: Cancel
uses: Homebrew/actions/cancel-previous-runs@master
with:
token: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}}
workflow: tests.yml
event: pull_request