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: on:
push: push:
branches: ["master"]
paths: ["_javascript/**/*.js"] paths: ["_javascript/**/*.js"]
pull_request: pull_request:
paths: ["_javascript/**/*.js"] paths: ["_javascript/**/*.js"]

View file

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