Do not try design preview on non-forks (#14753)

This commit is contained in:
Joakim Sørensen 2022-12-13 16:53:01 +01:00 committed by GitHub
parent b82d6fd35f
commit 1da8a974f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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