From e02a705db95eeef81120335f4e11d91dfaf69a0b Mon Sep 17 00:00:00 2001 From: Alex Austregesilo Date: Thu, 11 Jun 2026 15:09:22 -0400 Subject: [PATCH] Add GitLab CI trigger workflow for pull requests --- .github/workflows/gitlab-pr.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/gitlab-pr.yml diff --git a/.github/workflows/gitlab-pr.yml b/.github/workflows/gitlab-pr.yml new file mode 100644 index 000000000..efc03440d --- /dev/null +++ b/.github/workflows/gitlab-pr.yml @@ -0,0 +1,21 @@ +name: Trigger GitLab CI on PR + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + trigger-gitlab: + runs-on: ubuntu-latest + + steps: + - name: Trigger GitLab Pipeline + run: | + curl -X POST \ + -F token=${{ secrets.GITLAB_TRIGGER_TOKEN }} \ + -F ref=main \ + -F "variables[PR_NUMBER]=${{ github.event.pull_request.number }}" \ + -F "variables[PR_BRANCH]=${{ github.head_ref }}" \ + -F "variables[PR_REPO]=${{ github.repository }}" \ + -F "variables[PR_SHA]=${{ github.event.pull_request.head.sha }}" \ + https://code.jlab.org/api/v4/projects/868/trigger/pipeline