diff --git a/.github/workflows/gitlab-ci.yml b/.github/workflows/gitlab-ci.yml index 058506d4..f1c90728 100644 --- a/.github/workflows/gitlab-ci.yml +++ b/.github/workflows/gitlab-ci.yml @@ -8,12 +8,12 @@ name: gitlab-ci -on: [ push, pull_request_target, workflow_dispatch ] +on: [ push, pull_request, workflow_dispatch ] jobs: gitlab-ci: runs-on: ubuntu-latest - if: github.repository == 'pulp-platform/common_cells' + 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