From 5ac230a87f1efac9379618077eda23efca85efa4 Mon Sep 17 00:00:00 2001 From: Christine Kim <125395064+chkim-usgs@users.noreply.github.com> Date: Wed, 27 Nov 2024 16:36:41 -0500 Subject: [PATCH] Update gitlab-codebuild.yml --- .github/workflows/gitlab-codebuild.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gitlab-codebuild.yml b/.github/workflows/gitlab-codebuild.yml index 2956e8cec3..04a0cdde71 100644 --- a/.github/workflows/gitlab-codebuild.yml +++ b/.github/workflows/gitlab-codebuild.yml @@ -1,6 +1,7 @@ name: Github to Gitlab CI - Run CodeBuild env: + PR_NUMBER: ${{ github.event.number }} GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} on: @@ -26,10 +27,10 @@ jobs: git config --global user.email "project_14468_bot_3f7d8e1a392afd88ead5f3f3154e809d@noreply.gitlab.com" git clone https://isis-codebuild-ci:$GITLAB_TOKEN@code.usgs.gov/astrogeology/isis-codebuild-ci.git cd isis-codebuild-ci - git checkout -b $BRANCH_NAME + git checkout -b $PR_NUMBER echo -e "\nenv: \n shell: bash \n variables: \n PR_NUMBER: $PR_NUMBER \n MERGE_BRANCH: $GITHUB_BASE_REF" >> buildspec.yml - git commit -a -m "$BRANCH_NAME" - git push origin $BRANCH_NAME --force + git commit -a -m "$PR_NUMBER" + git push origin $PR_NUMBER --force comment-bot: permissions: write-all -- GitLab