From ce5e0551e573ab35713e3d9233002be429f80a6d Mon Sep 17 00:00:00 2001 From: Nicolas Peugnet Date: Sun, 28 Jul 2024 18:22:54 +0200 Subject: [PATCH] Do not deploy previews on PRs from forks As it currently does not work --- .github/workflows/build.yml | 1 + .github/workflows/clean.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9aca5f16..41fbd6fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -152,6 +152,7 @@ jobs: runs-on: ubuntu-latest needs: html concurrency: preview-${{ github.ref }} + if: github.event.pull_request.head.repo.full_name == github.repository permissions: contents: write pull-requests: write diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml index 218b237b..55495f0a 100644 --- a/.github/workflows/clean.yml +++ b/.github/workflows/clean.yml @@ -12,6 +12,7 @@ concurrency: preview-${{ github.ref }} jobs: preview: runs-on: ubuntu-latest + if: github.event.pull_request.head.repo.full_name == github.repository permissions: contents: write pull-requests: write