|
9 | 9 | - 'beta'
|
10 | 10 | - 'alpha'
|
11 | 11 | - '!all-contributors/**'
|
12 | | - pull_request: {} |
| 12 | + pull_request: |
| 13 | + |
| 14 | +concurrency: |
| 15 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 16 | + cancel-in-progress: true |
| 17 | + |
13 | 18 | jobs:
|
14 | 19 | main:
|
15 | 20 | # ignore all-contributors PRs
|
|
20 | 25 | react: [16.9.0, ^16, ^17]
|
21 | 26 | runs-on: ubuntu-latest
|
22 | 27 | steps:
|
23 | | - - name: 🛑 Cancel Previous Runs |
24 | | - uses: styfle/cancel-workflow-action@0.9.1 |
25 | | - |
26 | 28 | - name: ⬇️ Checkout repo
|
27 | 29 | uses: actions/checkout@v2
|
28 | 30 |
|
|
55 | 57 | contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha', github.ref) &&
|
56 | 58 | github.event_name == 'push' }}
|
57 | 59 | steps:
|
58 | | - - name: 🛑 Cancel Previous Runs |
59 | | - uses: styfle/cancel-workflow-action@0.9.1 |
60 | | - |
61 | 60 | - name: ⬇️ Checkout repo
|
62 | 61 | uses: actions/checkout@v2
|
63 | 62 |
|
|
0 commit comments