[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 <myoung@ciq.co>
This commit is contained in:
Michael L. Young
2022-10-05 23:40:05 -04:00
parent f8d9dbc61e
commit ec555f2d5e

View File

@@ -6,6 +6,7 @@ on:
jobs:
publish:
if: ${{ github.repository_owner == 'hcpng' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2