From 65c51e9fca1674e0ff7b9bcdd888aeea6b19856a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20N=C3=A4geli?= Date: Sun, 26 Jul 2026 16:23:31 +0200 Subject: [PATCH] Do not run deployment job when syncing forks --- .github/workflows/deploy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c8d47ac7e..48755dedc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,6 +19,9 @@ concurrency: jobs: build: + # Don't deploy from forks (e.g. when syncing main from upstream). The + # GitHub Pages deployment isn't available on forks and the run would fail. + if: github.event.repository.fork == false runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 @@ -46,6 +49,7 @@ jobs: deploy: needs: build + if: github.event.repository.fork == false runs-on: ubuntu-latest environment: name: github-pages