Fixed only running linting on changed projects

- this configures the lint step to only run on packages that have
  changed since the previous commit
This commit is contained in:
Daniel Lockyer 2023-07-04 13:59:57 +02:00 committed by Daniel Lockyer
parent 1c03280223
commit ec94930876

View File

@ -142,6 +142,8 @@ jobs:
name: Lint
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 100
- uses: actions/setup-node@v3
env:
FORCE_COLOR: 0
@ -158,7 +160,7 @@ jobs:
path: ghost/**/.eslintcache
key: eslint-cache
- run: yarn lint
- run: yarn lint --since ${{ github.event.pull_request.base.sha || github.event.before }}
- uses: tryghost/actions/actions/slack-build@main
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'