Cancel current CI actions when a PR is updated

This commit is contained in:
Sam Lantinga 2022-12-28 13:06:46 -08:00
parent 16092f58bb
commit 58763b608b
8 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@ name: Build (Android)
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:

View File

@ -3,7 +3,7 @@ name: Build (Emscripten)
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:

View File

@ -3,7 +3,7 @@ name: Build (iOS/tvOS)
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:

View File

@ -3,7 +3,7 @@ name: Build
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:

View File

@ -3,7 +3,7 @@ name: Build (MSVC)
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:

View File

@ -3,7 +3,7 @@ name: Build (Nintendo 3DS)
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:

View File

@ -3,7 +3,7 @@ name: Build (RISC OS)
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:

View File

@ -3,7 +3,7 @@ name: Build (VM Actions)
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs: