From 08f3d8120dd59e8b7bc4b04887e7c11dd61a6d33 Mon Sep 17 00:00:00 2001 From: czlonkowski <56956555+czlonkowski@users.noreply.github.com> Date: Sat, 2 Aug 2025 22:23:15 +0200 Subject: [PATCH] fix: skip CI/CD workflows for documentation-only changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add comprehensive paths-ignore to all workflows to skip runs when only docs are changed - Standardize pattern ordering across all workflow files - Fix redundant path configuration in benchmark-pr.yml - Add support for more documentation file types (*.txt, examples/**, .gitignore, etc.) - Ensure LICENSE* pattern covers all license file variants This optimization saves CI/CD minutes and reduces costs by avoiding unnecessary test runs, Docker builds, and benchmarks for documentation-only commits. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/benchmark-pr.yml | 18 +++++++++++++----- .github/workflows/benchmark.yml | 26 ++++++++++++++++++++++++++ .github/workflows/docker-build-n8n.yml | 26 ++++++++++++++++++++++++++ .github/workflows/docker-build.yml | 18 ++++++++++++++---- .github/workflows/release.yml | 13 +++++++++++++ .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 6 files changed, 118 insertions(+), 9 deletions(-) diff --git a/.github/workflows/benchmark-pr.yml b/.github/workflows/benchmark-pr.yml index 01d161e..f347c33 100644 --- a/.github/workflows/benchmark-pr.yml +++ b/.github/workflows/benchmark-pr.yml @@ -2,11 +2,19 @@ name: Benchmark PR Comparison on: pull_request: branches: [main] - paths: - - 'src/**' - - 'tests/benchmarks/**' - - 'package.json' - - 'vitest.config.benchmark.ts' + paths-ignore: + - '**.md' + - '**.txt' + - 'docs/**' + - 'examples/**' + - '.github/FUNDING.yml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/pull_request_template.md' + - '.gitignore' + - 'LICENSE*' + - 'ATTRIBUTION.md' + - 'SECURITY.md' + - 'CODE_OF_CONDUCT.md' permissions: pull-requests: write diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 79992f5..7a356cd 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -3,8 +3,34 @@ name: Performance Benchmarks on: push: branches: [main, feat/comprehensive-testing-suite] + paths-ignore: + - '**.md' + - '**.txt' + - 'docs/**' + - 'examples/**' + - '.github/FUNDING.yml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/pull_request_template.md' + - '.gitignore' + - 'LICENSE*' + - 'ATTRIBUTION.md' + - 'SECURITY.md' + - 'CODE_OF_CONDUCT.md' pull_request: branches: [main] + paths-ignore: + - '**.md' + - '**.txt' + - 'docs/**' + - 'examples/**' + - '.github/FUNDING.yml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/pull_request_template.md' + - '.gitignore' + - 'LICENSE*' + - 'ATTRIBUTION.md' + - 'SECURITY.md' + - 'CODE_OF_CONDUCT.md' workflow_dispatch: permissions: diff --git a/.github/workflows/docker-build-n8n.yml b/.github/workflows/docker-build-n8n.yml index dab5bb9..1134bb4 100644 --- a/.github/workflows/docker-build-n8n.yml +++ b/.github/workflows/docker-build-n8n.yml @@ -6,9 +6,35 @@ on: - main tags: - 'v*' + paths-ignore: + - '**.md' + - '**.txt' + - 'docs/**' + - 'examples/**' + - '.github/FUNDING.yml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/pull_request_template.md' + - '.gitignore' + - 'LICENSE*' + - 'ATTRIBUTION.md' + - 'SECURITY.md' + - 'CODE_OF_CONDUCT.md' pull_request: branches: - main + paths-ignore: + - '**.md' + - '**.txt' + - 'docs/**' + - 'examples/**' + - '.github/FUNDING.yml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/pull_request_template.md' + - '.gitignore' + - 'LICENSE*' + - 'ATTRIBUTION.md' + - 'SECURITY.md' + - 'CODE_OF_CONDUCT.md' workflow_dispatch: env: diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index cbecbb1..ac25ed7 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -9,23 +9,33 @@ on: - 'v*' paths-ignore: - '**.md' + - '**.txt' + - 'docs/**' + - 'examples/**' - '.github/FUNDING.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/pull_request_template.md' - - 'LICENSE' + - '.gitignore' + - 'LICENSE*' - 'ATTRIBUTION.md' - - 'docs/**' + - 'SECURITY.md' + - 'CODE_OF_CONDUCT.md' pull_request: branches: - main paths-ignore: - '**.md' + - '**.txt' + - 'docs/**' + - 'examples/**' - '.github/FUNDING.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/pull_request_template.md' - - 'LICENSE' + - '.gitignore' + - 'LICENSE*' - 'ATTRIBUTION.md' - - 'docs/**' + - 'SECURITY.md' + - 'CODE_OF_CONDUCT.md' workflow_dispatch: env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5e134d..41c656c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,19 @@ on: paths: - 'package.json' - 'package.runtime.json' + paths-ignore: + - '**.md' + - '**.txt' + - 'docs/**' + - 'examples/**' + - '.github/FUNDING.yml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/pull_request_template.md' + - '.gitignore' + - 'LICENSE*' + - 'ATTRIBUTION.md' + - 'SECURITY.md' + - 'CODE_OF_CONDUCT.md' permissions: contents: write diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1e8c2e3..f93bdf5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,8 +2,34 @@ name: Test Suite on: push: branches: [main, feat/comprehensive-testing-suite] + paths-ignore: + - '**.md' + - '**.txt' + - 'docs/**' + - 'examples/**' + - '.github/FUNDING.yml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/pull_request_template.md' + - '.gitignore' + - 'LICENSE*' + - 'ATTRIBUTION.md' + - 'SECURITY.md' + - 'CODE_OF_CONDUCT.md' pull_request: branches: [main] + paths-ignore: + - '**.md' + - '**.txt' + - 'docs/**' + - 'examples/**' + - '.github/FUNDING.yml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/pull_request_template.md' + - '.gitignore' + - 'LICENSE*' + - 'ATTRIBUTION.md' + - 'SECURITY.md' + - 'CODE_OF_CONDUCT.md' permissions: contents: read