ci: prevent deploy for PRs from forks

This commit is contained in:
Tim 2024-11-05 22:42:14 +01:00
parent e0342be6dc
commit df1aa716d2

View file

@ -37,7 +37,7 @@ jobs:
# "--parrents where no error if existing, make parent directories as needed."
- run: mkdir -p ./build/${{ github.head_ref || github.ref_name }}
- name: Deploy to GitHub Pages
if: github.repository == 'Stremio/stremio-web' && github.actor != 'dependabot[bot]'
if: github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}