Limit what GitHub actions need to run for specific directories
This commit is contained in:
2
.github/workflows/javascript-formatting.yml
vendored
2
.github/workflows/javascript-formatting.yml
vendored
@@ -5,6 +5,7 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- web/**
|
||||
|
||||
jobs:
|
||||
prettier:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -23,7 +24,6 @@ jobs:
|
||||
with:
|
||||
# This part is also where you can pass other options, for example:
|
||||
prettier_options: --write **/*.{js,ts,jsx,tsx,css,md}
|
||||
working_directory: web
|
||||
only_changed: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user