Limit what GitHub actions need to run for specific directories

This commit is contained in:
Gabe Kangas
2022-06-29 14:34:37 -07:00
parent e7d078fbdb
commit 43aba0a67c
5 changed files with 27 additions and 17 deletions

View File

@@ -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 }}