From fe6e02bbfed95c53e603902294b3a3e6d7475a2b Mon Sep 17 00:00:00 2001 From: Dan Bonachea Date: Thu, 23 Apr 2026 17:36:43 -0700 Subject: [PATCH] CI: Deploy concurrency and path filtering for Action activation Reduce unnecessary churn by skipping CI Action for documentation-only changes. Also, avoid duplicate Actions on pushes to PR branches (which trigger both the `push` and `pull_request` events). Finally, cancel earlier Actions still running when a non-main branch is updated, as these are usually unneeded, and the superceded Action can even cause spurious failures after a subsequent force push orphans the source commit. --- .github/workflows/build.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ac69f5c..5bc32697 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,18 @@ name: Build -on: [push, pull_request] +on: + push: + paths-ignore: &paths_ignore + - 'docs/**' + - '**.txt' + - '**.md' + pull_request: + paths-ignore: *paths_ignore + +concurrency: + # De-duplicate concurrent workflow runs on the same branch/ref + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} defaults: run: