Skip to content

Commit c7f6cf9

Browse files
committed
chore: improve branches filter
Avoid duplicate workflows on PRs
1 parent add19aa commit c7f6cf9

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches-ignore: [production]
5+
branches:
6+
- master
7+
- "hotfix/*"
68
paths-ignore:
79
- ".github/**"
810
- "!.github/workflows/ci.yml"

.github/workflows/commitlint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Lint Commit Messages
22

33
on:
44
push:
5-
branches-ignore: [production]
5+
branches:
6+
- master
7+
- "hotfix/*"
68
pull_request:
79

810
jobs:

.github/workflows/style-lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Style Lint
22

33
on:
44
push:
5-
branches-ignore: [production]
5+
branches:
6+
- master
7+
- "hotfix/*"
68
paths: ["_sass/**/*.scss"]
79
pull_request:
810
paths: ["_sass/**/*.scss"]

0 commit comments

Comments
 (0)