From 8c368df4e0e5a260c7f50ebbe1a85717af017d96 Mon Sep 17 00:00:00 2001 From: Cody Lee Date: Wed, 28 Dec 2022 11:49:24 -0600 Subject: [PATCH 1/3] fixes public pull requests CI to actually run --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 877fb5d0..df8078ce 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,11 +1,11 @@ name: Build -on: [push] +on: + - push + - pull_request permissions: contents: read - # Optional: allow read access to pull request. Use with `only-new-issues` option. - # pull-requests: read jobs: test: From 593ba2f84c484ecd78292f676d7ce2cd99c479e1 Mon Sep 17 00:00:00 2001 From: Cody Lee Date: Wed, 28 Dec 2022 11:50:06 -0600 Subject: [PATCH 2/3] only pull_request --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df8078ce..e609342c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,6 @@ name: Build on: - - push - pull_request permissions: From dc703999bca2d4f8f06ed17372f496e044eb9c55 Mon Sep 17 00:00:00 2001 From: Cody Lee Date: Wed, 28 Dec 2022 11:52:11 -0600 Subject: [PATCH 3/3] cancel in progress --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e609342c..33ac32cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: test: strategy: