Fix build check trigger path of c and cpp.

This commit is contained in:
krahets 2023-11-17 00:24:35 +08:00
parent 49745cf2d2
commit e4aa76ed3e
2 changed files with 4 additions and 4 deletions

View file

@ -6,10 +6,10 @@ name: C
on: on:
push: push:
branches: ["main"] branches: ["main"]
paths: ["codes/c/**/*.{c,h}"] paths: ["codes/c/**/*.c", "codes/c/**/*.h"]
pull_request: pull_request:
branches: ["main"] branches: ["main"]
paths: ["codes/c/**/*.{c,h}"] paths: ["codes/c/**/*.c", "codes/c/**/*.h"]
workflow_dispatch: workflow_dispatch:
jobs: jobs:

View file

@ -6,10 +6,10 @@ name: C++
on: on:
push: push:
branches: ["main"] branches: ["main"]
paths: ["codes/cpp/**/*.{cpp,hpp}"] paths: ["codes/cpp/**/*.cpp", "codes/cpp/**/*.hpp"]
pull_request: pull_request:
branches: ["main"] branches: ["main"]
paths: ["codes/cpp/**/*.{cpp,hpp}"] paths: ["codes/cpp/**/*.cpp", "codes/cpp/**/*.hpp"]
workflow_dispatch: workflow_dispatch:
jobs: jobs: