Skip to content

Commit b84e2a0

Browse files
EddieHoustonphilippem
authored andcommitted
Add GITHUB_PR_NUMBER to GitLab workflow
1 parent 6980fb6 commit b84e2a0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/start-gitlab.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
GITHUB_REPO: ${{ github.repository }}
2626
# The GitHub token for reporting status back
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
2829
GITHUB_REPO_URL: ${{ github.event.pull_request.head.repo.clone_url }}
2930
run: |
3031
# --- Safety Checks ---
@@ -50,6 +51,7 @@ jobs:
5051
--form "variables[GITHUB_PR_SHA]=${GITHUB_PR_SHA}" \
5152
--form "variables[GITHUB_PR_REF]=${GITHUB_PR_REF}" \
5253
--form "variables[GITHUB_REPO]=${GITHUB_REPO}" \
54+
--form "variables[GITHUB_PR_NUMBER]=${GITHUB_PR_NUMBER}" \
5355
--form "variables[GITHUB_REPO_URL]=${GITHUB_REPO_URL}" \
5456
"${GL_TRIGGER_URL}" > /dev/null
5557
echo "GitLab pipeline triggered."

0 commit comments

Comments
 (0)