From 1da8a974f8fb5bba9401c00a1f8ec6e99d20c0e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 13 Dec 2022 16:53:01 +0100 Subject: [PATCH] Do not try design preview on non-forks (#14753) --- .github/workflows/design_preview.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/design_preview.yaml b/.github/workflows/design_preview.yaml index a209613620..e53f0c83a3 100644 --- a/.github/workflows/design_preview.yaml +++ b/.github/workflows/design_preview.yaml @@ -17,7 +17,9 @@ env: jobs: preview: runs-on: ubuntu-latest - if: contains(github.event.pull_request.labels.*.name, 'needs design preview') + # Skip running on forks since it won't have access to secrets + # Skip running PRs without 'needs design preview' label + if: github.repository == 'home-assistant/frontend' && contains(github.event.pull_request.labels.*.name, 'needs design preview') steps: - name: Check out files from GitHub uses: actions/checkout@v3