Skip to content

Commit

Permalink
[actions] cancel in-progress runs on PR updates
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored and ljharb committed Apr 7, 2024
1 parent 8587c85 commit f77ceb6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/native-wsl.yml
Expand Up @@ -2,6 +2,10 @@ name: Native and WSL

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/node-4+.yml
Expand Up @@ -2,6 +2,10 @@ name: 'Tests: node.js'

on: [pull_request, push]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: read

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/packages.yml
Expand Up @@ -2,6 +2,10 @@ name: 'Tests: packages'

on: [pull_request, push]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: read

Expand Down

0 comments on commit f77ceb6

Please sign in to comment.