From 262a96ac04ba5ef0c8b73a8990a17fd944157fff Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Thu, 9 Nov 2023 11:26:33 -0500 Subject: [PATCH 1/2] [skip ci] Don't do GitHub CI "push" runs on non-default branches --- .github/workflows/inception-test.yml | 2 ++ .github/workflows/test.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/inception-test.yml b/.github/workflows/inception-test.yml index 9794ddd..81d8a15 100644 --- a/.github/workflows/inception-test.yml +++ b/.github/workflows/inception-test.yml @@ -3,6 +3,8 @@ name: Test fetching tinuous' logs on: pull_request: push: + branches: + - master jobs: test: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ed9dea0..09c322a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,6 +3,8 @@ name: Test on: pull_request: push: + branches: + - master jobs: test: From 90d97a914c76f37e014d9cbe2e1a79a77c0b8c18 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Thu, 9 Nov 2023 12:11:27 -0500 Subject: [PATCH 2/2] [skip ci] Cancel in-progress CI runs when a new push is made to a branch --- .github/workflows/codespell.yml | 4 ++++ .github/workflows/inception-test.yml | 4 ++++ .github/workflows/test.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 4fcb509..e1a5e17 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -6,6 +6,10 @@ on: branches: [master] pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }} + cancel-in-progress: true + jobs: codespell: name: Check for spelling errors diff --git a/.github/workflows/inception-test.yml b/.github/workflows/inception-test.yml index 81d8a15..221f319 100644 --- a/.github/workflows/inception-test.yml +++ b/.github/workflows/inception-test.yml @@ -6,6 +6,10 @@ on: branches: - master +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }} + cancel-in-progress: true + jobs: test: runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 09c322a..5d8a176 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,10 @@ on: branches: - master +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }} + cancel-in-progress: true + jobs: test: runs-on: ubuntu-latest