From 3dc99c8fd5735937b213039160b9b42b4d93834a Mon Sep 17 00:00:00 2001 From: "Jiaxiao (mossaka) Zhou" Date: Thu, 12 Mar 2026 17:35:21 +0000 Subject: [PATCH] ci: skip CI workflows when only release.yml changes Add paths-ignore for .github/workflows/release.yml to all test and build workflows so that PRs modifying only the release workflow don't trigger slow integration tests and other unnecessary CI checks. Affected workflows: build, codeql, dependency-audit, lint, test-action, test-chroot, test-coverage, test-examples, test-integration-suite, test-integration. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/build.yml | 2 ++ .github/workflows/codeql.yml | 2 ++ .github/workflows/dependency-audit.yml | 1 + .github/workflows/lint.yml | 1 + .github/workflows/test-action.yml | 1 + .github/workflows/test-chroot.yml | 2 ++ .github/workflows/test-coverage.yml | 1 + .github/workflows/test-examples.yml | 1 + .github/workflows/test-integration-suite.yml | 2 ++ .github/workflows/test-integration.yml | 2 ++ 10 files changed, 15 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 655267c2..da3da275 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,8 @@ on: branches: [main] pull_request: branches: [main] + paths-ignore: + - '.github/workflows/release.yml' workflow_dispatch: permissions: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index c313fec1..6bf77e8b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -5,6 +5,8 @@ on: branches: [main] pull_request: branches: [main] + paths-ignore: + - '.github/workflows/release.yml' schedule: # Run at 00:00 UTC every Monday - cron: '0 0 * * 1' diff --git a/.github/workflows/dependency-audit.yml b/.github/workflows/dependency-audit.yml index b6e1bb25..19e8cdc2 100644 --- a/.github/workflows/dependency-audit.yml +++ b/.github/workflows/dependency-audit.yml @@ -7,6 +7,7 @@ on: branches: [main] paths-ignore: - '**/*.md' + - '.github/workflows/release.yml' schedule: # Run weekly on Mondays at 00:00 UTC - cron: '0 0 * * 1' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5062dcf1..717e4e3e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,6 +7,7 @@ on: branches: [main] paths-ignore: - '**/*.md' + - '.github/workflows/release.yml' permissions: contents: read diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 8f78aa50..aa809aec 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -7,6 +7,7 @@ on: branches: [main] paths-ignore: - '**/*.md' + - '.github/workflows/release.yml' workflow_dispatch: permissions: diff --git a/.github/workflows/test-chroot.yml b/.github/workflows/test-chroot.yml index 5d7186e4..7dc8ec8f 100644 --- a/.github/workflows/test-chroot.yml +++ b/.github/workflows/test-chroot.yml @@ -5,6 +5,8 @@ on: branches: [main] pull_request: branches: [main] + paths-ignore: + - '.github/workflows/release.yml' workflow_dispatch: permissions: diff --git a/.github/workflows/test-coverage.yml b/.github/workflows/test-coverage.yml index 95cd76f9..56dd54fc 100644 --- a/.github/workflows/test-coverage.yml +++ b/.github/workflows/test-coverage.yml @@ -5,6 +5,7 @@ on: branches: [main] paths-ignore: - '**/*.md' + - '.github/workflows/release.yml' push: branches: [main] diff --git a/.github/workflows/test-examples.yml b/.github/workflows/test-examples.yml index 4b44db1a..078d51cd 100644 --- a/.github/workflows/test-examples.yml +++ b/.github/workflows/test-examples.yml @@ -7,6 +7,7 @@ on: branches: [main] paths-ignore: - '**/*.md' + - '.github/workflows/release.yml' workflow_dispatch: permissions: diff --git a/.github/workflows/test-integration-suite.yml b/.github/workflows/test-integration-suite.yml index cd94f764..7fcf10ee 100644 --- a/.github/workflows/test-integration-suite.yml +++ b/.github/workflows/test-integration-suite.yml @@ -5,6 +5,8 @@ on: branches: [main] pull_request: branches: [main] + paths-ignore: + - '.github/workflows/release.yml' workflow_dispatch: permissions: diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index 000609ba..cfc093c8 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -5,6 +5,8 @@ on: branches: [main] pull_request: branches: [main] + paths-ignore: + - '.github/workflows/release.yml' workflow_dispatch: permissions: