ci: avoid trigger redundant workflows (#1682)

CodeQL and Sytle Lint
This commit is contained in:
Cotes Chung 2024-04-17 06:00:36 +08:00 committed by GitHub
parent bf16d6039a
commit c85e9e2394
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 7 deletions

View file

@ -2,6 +2,7 @@ name: "CodeQL"
on:
push:
branches: ["master"]
paths: ["_javascript/**/*.js"]
pull_request:
paths: ["_javascript/**/*.js"]

View file

@ -2,14 +2,10 @@ name: "Style Lint"
on:
push:
branches-ignore:
- "production"
- "docs"
paths:
- "_sass/**/*.scss"
branches: ["master"]
paths: ["_sass/**/*.scss"]
pull_request:
paths:
- "_sass/**/*.scss"
paths: ["_sass/**/*.scss"]
jobs:
stylelint: