From 13a82ec29eeb248ccedc7f7147b1d687cfe133a5 Mon Sep 17 00:00:00 2001 From: yuluo-yx Date: Sun, 20 Sep 2026 23:10:51 +0800 Subject: [PATCH] chore(ci): skip workflows for non-build file changes Signed-off-by: yuluo-yx --- .github/workflows/ci.yml | 42 +++++++++++++++++++ .github/workflows/docker-publish.yml | 22 +++++++++- .github/workflows/e2e-k8s.yml | 42 +++++++++++++++++++ .../workflows/integrated-test-k8s-ingress.yml | 42 +++++++++++++++++++ .github/workflows/integrated-test.yml | 42 +++++++++++++++++++ .github/workflows/k8s-examples-http.yml | 42 +++++++++++++++++++ 6 files changed, 230 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cbc12856e79..c399d1203df1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,9 +17,51 @@ name: ci on: pull_request: + paths-ignore: + - '**.md' + - '**.txt' + - '**.png' + - '**.jpg' + - '**.jpeg' + - '**.gif' + - '**.svg' + - '**.ico' + - '**.pdf' + - '**.doc' + - '**.docx' + - 'LICENSE' + - 'NOTICE' + - 'DISCLAIMER' + - '.asf.yaml' + - '.gitignore' + - '.licenserc.yaml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE' + - '**/resources/static/**' push: branches: - master + paths-ignore: + - '**.md' + - '**.txt' + - '**.png' + - '**.jpg' + - '**.jpeg' + - '**.gif' + - '**.svg' + - '**.ico' + - '**.pdf' + - '**.doc' + - '**.docx' + - 'LICENSE' + - 'NOTICE' + - 'DISCLAIMER' + - '.asf.yaml' + - '.gitignore' + - '.licenserc.yaml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE' + - '**/resources/static/**' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 3e222fb07969..f6b61483b010 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -20,8 +20,26 @@ on: branches: ["master"] tags: ["v*.*.*"] paths-ignore: - - "**.md" - - "**/resources/static/" + - '**.md' + - '**.txt' + - '**.png' + - '**.jpg' + - '**.jpeg' + - '**.gif' + - '**.svg' + - '**.ico' + - '**.pdf' + - '**.doc' + - '**.docx' + - 'LICENSE' + - 'NOTICE' + - 'DISCLAIMER' + - '.asf.yaml' + - '.gitignore' + - '.licenserc.yaml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE' + - '**/resources/static/**' env: REGISTRY: ghcr.io diff --git a/.github/workflows/e2e-k8s.yml b/.github/workflows/e2e-k8s.yml index b2da2b7b9508..75bbcc699eb5 100644 --- a/.github/workflows/e2e-k8s.yml +++ b/.github/workflows/e2e-k8s.yml @@ -17,9 +17,51 @@ name: e2e on: pull_request: + paths-ignore: + - '**.md' + - '**.txt' + - '**.png' + - '**.jpg' + - '**.jpeg' + - '**.gif' + - '**.svg' + - '**.ico' + - '**.pdf' + - '**.doc' + - '**.docx' + - 'LICENSE' + - 'NOTICE' + - 'DISCLAIMER' + - '.asf.yaml' + - '.gitignore' + - '.licenserc.yaml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE' + - '**/resources/static/**' push: branches: - master + paths-ignore: + - '**.md' + - '**.txt' + - '**.png' + - '**.jpg' + - '**.jpeg' + - '**.gif' + - '**.svg' + - '**.ico' + - '**.pdf' + - '**.doc' + - '**.docx' + - 'LICENSE' + - 'NOTICE' + - 'DISCLAIMER' + - '.asf.yaml' + - '.gitignore' + - '.licenserc.yaml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE' + - '**/resources/static/**' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} diff --git a/.github/workflows/integrated-test-k8s-ingress.yml b/.github/workflows/integrated-test-k8s-ingress.yml index f41e8a44f216..964e506f8fdc 100644 --- a/.github/workflows/integrated-test-k8s-ingress.yml +++ b/.github/workflows/integrated-test-k8s-ingress.yml @@ -17,9 +17,51 @@ name: it-k8s on: pull_request: + paths-ignore: + - '**.md' + - '**.txt' + - '**.png' + - '**.jpg' + - '**.jpeg' + - '**.gif' + - '**.svg' + - '**.ico' + - '**.pdf' + - '**.doc' + - '**.docx' + - 'LICENSE' + - 'NOTICE' + - 'DISCLAIMER' + - '.asf.yaml' + - '.gitignore' + - '.licenserc.yaml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE' + - '**/resources/static/**' push: branches: - master + paths-ignore: + - '**.md' + - '**.txt' + - '**.png' + - '**.jpg' + - '**.jpeg' + - '**.gif' + - '**.svg' + - '**.ico' + - '**.pdf' + - '**.doc' + - '**.docx' + - 'LICENSE' + - 'NOTICE' + - 'DISCLAIMER' + - '.asf.yaml' + - '.gitignore' + - '.licenserc.yaml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE' + - '**/resources/static/**' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} diff --git a/.github/workflows/integrated-test.yml b/.github/workflows/integrated-test.yml index 12ca4165e7e2..84df8f87a3c5 100644 --- a/.github/workflows/integrated-test.yml +++ b/.github/workflows/integrated-test.yml @@ -17,9 +17,51 @@ name: it on: pull_request: + paths-ignore: + - '**.md' + - '**.txt' + - '**.png' + - '**.jpg' + - '**.jpeg' + - '**.gif' + - '**.svg' + - '**.ico' + - '**.pdf' + - '**.doc' + - '**.docx' + - 'LICENSE' + - 'NOTICE' + - 'DISCLAIMER' + - '.asf.yaml' + - '.gitignore' + - '.licenserc.yaml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE' + - '**/resources/static/**' push: branches: - master + paths-ignore: + - '**.md' + - '**.txt' + - '**.png' + - '**.jpg' + - '**.jpeg' + - '**.gif' + - '**.svg' + - '**.ico' + - '**.pdf' + - '**.doc' + - '**.docx' + - 'LICENSE' + - 'NOTICE' + - 'DISCLAIMER' + - '.asf.yaml' + - '.gitignore' + - '.licenserc.yaml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE' + - '**/resources/static/**' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} diff --git a/.github/workflows/k8s-examples-http.yml b/.github/workflows/k8s-examples-http.yml index 07493ec120e6..4dba98c03885 100644 --- a/.github/workflows/k8s-examples-http.yml +++ b/.github/workflows/k8s-examples-http.yml @@ -17,9 +17,51 @@ name: k8s-examples-http on: pull_request: + paths-ignore: + - '**.md' + - '**.txt' + - '**.png' + - '**.jpg' + - '**.jpeg' + - '**.gif' + - '**.svg' + - '**.ico' + - '**.pdf' + - '**.doc' + - '**.docx' + - 'LICENSE' + - 'NOTICE' + - 'DISCLAIMER' + - '.asf.yaml' + - '.gitignore' + - '.licenserc.yaml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE' + - '**/resources/static/**' push: branches: - master + paths-ignore: + - '**.md' + - '**.txt' + - '**.png' + - '**.jpg' + - '**.jpeg' + - '**.gif' + - '**.svg' + - '**.ico' + - '**.pdf' + - '**.doc' + - '**.docx' + - 'LICENSE' + - 'NOTICE' + - 'DISCLAIMER' + - '.asf.yaml' + - '.gitignore' + - '.licenserc.yaml' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE' + - '**/resources/static/**' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}