From 2bb4bc1824709a7b74249a05efd656d97b5280b0 Mon Sep 17 00:00:00 2001 From: Nils Wistoff Date: Sat, 16 Mar 2024 14:22:05 +0100 Subject: [PATCH] Revert "ci: Change gitlab-ci trigger to pull_request_target (#216)" This reverts commit 1674a11b833c43c1e37413695dad9acb3ab598c1. The gitlab-ci pulp-action does not support `pull_request_target` (yet). Consider re-applying #216 once support for `pull_request_target` has been implemented in gitlab-ci. --- .github/workflows/gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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