From b78c68245c05c1fecb3dac8d2fc43172dc92ca4c Mon Sep 17 00:00:00 2001 From: Michael Schlottke-Lakemper Date: Mon, 5 Jul 2021 09:22:01 +0200 Subject: [PATCH] Do not run doc preview cleanup from forks --- .github/workflows/DocPreviewCleanup.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/DocPreviewCleanup.yml b/.github/workflows/DocPreviewCleanup.yml index d73330c6f7c..a8f05276b69 100644 --- a/.github/workflows/DocPreviewCleanup.yml +++ b/.github/workflows/DocPreviewCleanup.yml @@ -6,6 +6,9 @@ on: jobs: doc-preview-cleanup: + # Do not run on forks to avoid authorization errors + # Source: https://github.community/t/have-github-action-only-run-on-master-repo-and-not-on-forks/140840/18 + if: github.repository_owner == 'trixi-framework' runs-on: ubuntu-latest steps: - name: Checkout gh-pages branch