SDL: Cancel current CI actions when a PR is updated (58763)

From 58763b608b060380a6ba03568c88d815193e4c9c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
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 432f5cae7ecb..b83da712e5ce 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 9021338cd544..2605e9beb163 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 af6e0805545a..fb92ecd182a5 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 5261d77f1606..5cc488982f96 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 254ab47faf90..0abfc50f5889 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 ac8f129e51a5..9b11122f3bca 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 6b2695065e62..d3ecc68b2a43 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 ee1998b40d9d..a86cf1b3571b 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: