Skip to content

Commit

Permalink
ci: Skip gitlab-ci on forks (#178)
Browse files Browse the repository at this point in the history
These will not work due to missing GitHub secrets

Signed-off-by: Nils Wistoff <[email protected]>
  • Loading branch information
niwis authored Apr 14, 2023
1 parent e22fce0 commit 89a133c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on: [ push, pull_request, workflow_dispatch ]
jobs:
gitlab-ci:
runs-on: ubuntu-latest
if: github.repository == 'pulp-platform/common_cells' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
steps:
- name: Check Gitlab CI
uses: pulp-platform/pulp-actions/gitlab-ci@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ci
on: [push]
name: lint
on: [ push, pull_request, workflow_dispatch ]

jobs:
################
Expand Down

0 comments on commit 89a133c

Please sign in to comment.