From 58763b608b060380a6ba03568c88d815193e4c9c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 28 Dec 2022 13:06:46 -0800 Subject: [PATCH] Cancel current CI actions when a PR is updated --- .github/workflows/android.yml | 2 +- .github/workflows/emscripten.yml | 2 +- .github/workflows/ios.yml | 2 +- .github/workflows/main.yml | 2 +- .github/workflows/msvc.yml | 2 +- .github/workflows/n3ds.yml | 2 +- .github/workflows/riscos.yml | 2 +- .github/workflows/vmactions.yml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 432f5cae7e..b83da712e5 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -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: diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index 9021338cd5..2605e9beb1 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml @@ -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: diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index af6e080554..fb92ecd182 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -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: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5261d77f16..5cc488982f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/.github/workflows/msvc.yml b/.github/workflows/msvc.yml index 254ab47faf..0abfc50f58 100644 --- a/.github/workflows/msvc.yml +++ b/.github/workflows/msvc.yml @@ -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: diff --git a/.github/workflows/n3ds.yml b/.github/workflows/n3ds.yml index ac8f129e51..9b11122f3b 100644 --- a/.github/workflows/n3ds.yml +++ b/.github/workflows/n3ds.yml @@ -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: diff --git a/.github/workflows/riscos.yml b/.github/workflows/riscos.yml index 6b2695065e..d3ecc68b2a 100644 --- a/.github/workflows/riscos.yml +++ b/.github/workflows/riscos.yml @@ -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: diff --git a/.github/workflows/vmactions.yml b/.github/workflows/vmactions.yml index ee1998b40d..a86cf1b357 100644 --- a/.github/workflows/vmactions.yml +++ b/.github/workflows/vmactions.yml @@ -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: