Skip to content

Commit 2b793f1

Browse files
authored
Merge pull request #249 from sikepuri-algorithm/update-linter-ci
Update linter CI
2 parents 8fb9a4e + d2baf62 commit 2b793f1

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/linter.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
---
21
name: Linter
32

43
on:
5-
push:
64
pull_request:
7-
branches: [main, master]
85

96
jobs:
10-
changes:
7+
check-changes:
118
name: Check Changes
129
runs-on: ubuntu-latest
1310
steps:
14-
- name: Checkout Code
11+
- name: Checkout
1512
uses: actions/checkout@v3
1613

1714
- name: Check Changes
@@ -26,7 +23,7 @@ jobs:
2623
2724
eslint:
2825
name: ESLint
29-
needs: changes
26+
needs: check-changes
3027
if: needs.changes.outputs.eslint == 'true'
3128
runs-on: ubuntu-latest
3229
steps:
@@ -43,7 +40,7 @@ jobs:
4340

4441
stylelint:
4542
name: Stylelint
46-
needs: changes
43+
needs: check-changes
4744
if: needs.changes.outputs.stylelint == 'true'
4845
runs-on: ubuntu-latest
4946
steps:

0 commit comments

Comments
 (0)