Run app quality check only for PRs within the main repo

This commit is contained in:
Konrad Szwarc 2023-01-20 18:16:30 +01:00
parent f331ec7927
commit d01804eaab

View file

@ -7,6 +7,7 @@ on:
jobs: jobs:
preview: preview:
name: Create deploy preview name: Create deploy preview
if: github.repository == 'KonradSzwarc/devscard'
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
deploy-url: ${{ steps.netlify.outputs.deploy-url }} deploy-url: ${{ steps.netlify.outputs.deploy-url }}
@ -35,6 +36,7 @@ jobs:
lighthouse: lighthouse:
name: Run Lighthouse tests name: Run Lighthouse tests
if: github.repository == 'KonradSzwarc/devscard'
needs: preview needs: preview
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: