From d1d3b8a51a3adf13d76a49243aefcfad4e8125b9 Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Thu, 1 Feb 2024 01:22:08 +0800 Subject: [PATCH] [skip ci] Update path conditions in PR and CI workflows (#863) --- .github/workflows/build_pull_request.yml | 8 +++++--- .github/workflows/build_push.yml | 9 ++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_pull_request.yml b/.github/workflows/build_pull_request.yml index 2a3d68446..618cd5301 100644 --- a/.github/workflows/build_pull_request.yml +++ b/.github/workflows/build_pull_request.yml @@ -2,9 +2,11 @@ name: PR build check on: pull_request: - paths-ignore: - - '**.md' - - '.github/workflows/issue_moderator.yml' + paths: + - '**' + - '!**.md' + - '!.github/**' + - '.github/workflows/build_pull_request.yml' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number }} diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index 2e954f52c..91c21e10b 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -4,9 +4,12 @@ on: push: branches: - main - paths-ignore: - - '**.md' - - '.github/workflows/issue_moderator.yml' + paths: + - '**' + - '!**.md' + - '!.github/**' + - '.github/scripts/**' + - '.github/workflows/build_push.yml' concurrency: group: ${{ github.workflow }}