From e4aa76ed3e8dc6d9029d54a4c86946df5368350a Mon Sep 17 00:00:00 2001 From: krahets Date: Fri, 17 Nov 2023 00:24:35 +0800 Subject: [PATCH] Fix build check trigger path of c and cpp. --- .github/workflows/c.yml | 4 ++-- .github/workflows/cpp.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/c.yml b/.github/workflows/c.yml index 6f0f72d2c..8259cd2b1 100644 --- a/.github/workflows/c.yml +++ b/.github/workflows/c.yml @@ -6,10 +6,10 @@ name: C on: push: branches: ["main"] - paths: ["codes/c/**/*.{c,h}"] + paths: ["codes/c/**/*.c", "codes/c/**/*.h"] pull_request: branches: ["main"] - paths: ["codes/c/**/*.{c,h}"] + paths: ["codes/c/**/*.c", "codes/c/**/*.h"] workflow_dispatch: jobs: diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 0f58ec872..ebf3a3e97 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -6,10 +6,10 @@ name: C++ on: push: branches: ["main"] - paths: ["codes/cpp/**/*.{cpp,hpp}"] + paths: ["codes/cpp/**/*.cpp", "codes/cpp/**/*.hpp"] pull_request: branches: ["main"] - paths: ["codes/cpp/**/*.{cpp,hpp}"] + paths: ["codes/cpp/**/*.cpp", "codes/cpp/**/*.hpp"] workflow_dispatch: jobs: