From 267ff4cc6cca4ff42352cac7f5222ea074bae47e Mon Sep 17 00:00:00 2001 From: longieirl Date: Fri, 27 Mar 2026 10:03:40 +0000 Subject: [PATCH] ci: add [skip downstream] support to dispatch-downstream job Merges that don't need to trigger a private-repo rebuild (formatting fixes, doc updates, test-only changes) can now include [skip downstream] anywhere in the commit message to skip the dispatch. Closes #81. --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b761d39..281328a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -366,6 +366,9 @@ jobs: # Fires only on push to main (not PRs), only when parser-core files changed, # and only after test-core passes. # + # To skip the downstream trigger (e.g. formatting fixes, doc updates): + # add [skip downstream] anywhere in the commit message. + # # Security: # - Gated on push to main + test-core success — PRs never trigger this # - DOWNSTREAM_DISPATCH_TOKEN must be a fine-grained PAT scoped to @@ -376,7 +379,10 @@ jobs: name: Dispatch downstream CI (bankstatements) runs-on: ubuntu-latest needs: test-core - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: | + github.event_name == 'push' && + github.ref == 'refs/heads/main' && + !contains(github.event.head_commit.message, '[skip downstream]') steps: - uses: actions/checkout@v6