Skip to content

Commit

Permalink
gitlab-ci/README: How not to run on forks (#6)
Browse files Browse the repository at this point in the history
Add instructions on how to skip this action on forks or pull requests from forks due to missing secrets.

Signed-off-by: Nils Wistoff <[email protected]>
  • Loading branch information
niwis authored Apr 14, 2023
1 parent 9db72ed commit adacb78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gitlab-ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check Gitlab CI
uses: pulp-platform/pulp-actions/gitlab-ci@v1
uses: pulp-platform/pulp-actions/gitlab-ci@v2
# Skip on forks or pull requests from forks due to missing secrets.
if: github.repository == 'pulp-platform/cheshire' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
with:
domain: iis-git.ee.ethz.ch
repo: github-mirror/cheshire
Expand Down

0 comments on commit adacb78

Please sign in to comment.