Skip to content

Commit c85e9e2

Browse files
authored
ci: avoid trigger redundant workflows (#1682)
CodeQL and Sytle Lint
1 parent bf16d60 commit c85e9e2

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: "CodeQL"
22

33
on:
44
push:
5+
branches: ["master"]
56
paths: ["_javascript/**/*.js"]
67
pull_request:
78
paths: ["_javascript/**/*.js"]

.github/workflows/style-lint.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ name: "Style Lint"
22

33
on:
44
push:
5-
branches-ignore:
6-
- "production"
7-
- "docs"
8-
paths:
9-
- "_sass/**/*.scss"
5+
branches: ["master"]
6+
paths: ["_sass/**/*.scss"]
107
pull_request:
11-
paths:
12-
- "_sass/**/*.scss"
8+
paths: ["_sass/**/*.scss"]
139

1410
jobs:
1511
stylelint:

0 commit comments

Comments
 (0)