Skip to content

Commit 8afb29c

Browse files
authored
Merge pull request #399 from rivenmedia/conditional-linting
Run frontend linting only when frontend has changes
2 parents d920632 + f5dfa35 commit 8afb29c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/frontend-battery.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,14 @@ jobs:
8282
run: pnpm install
8383
working-directory: ./frontend
8484

85-
- run: pnpm lint
85+
- uses: dorny/paths-filter@v2
86+
id: changes
87+
with:
88+
filters: |
89+
modified:
90+
- 'frontend/**'
91+
92+
- name: Run lint
93+
if: steps.changes.outputs.modified == 'true'
94+
run: pnpm lint
8695
working-directory: ./frontend

0 commit comments

Comments
 (0)