From ec555f2d5ece24dc3b67a1835ea54a3932853881 Mon Sep 17 00:00:00 2001 From: "Michael L. Young" Date: Wed, 5 Oct 2022 23:40:05 -0400 Subject: [PATCH] [CI/CD] Check owner of repo before running documentaton GH action If a fork is running GH actions, do not create the static documentation and try to push to the warewulf documentation repo. Signed-off-by: Michael L. Young --- .github/workflows/documentation.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index d725551e..49ba564c 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -6,6 +6,7 @@ on: jobs: publish: + if: ${{ github.repository_owner == 'hcpng' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2