Loading .github/workflows/gitlab-codebuild.yml +4 −4 Original line number Diff line number Diff line Loading @@ -19,17 +19,17 @@ jobs: - uses: actions/checkout@v4 - name: Run script env: REF_NAME: ${{ github.ref_name }} BRANCH_NAME: ${{ github.head_ref || github.ref_name }} EVENT_TYPE: ${{ github.event_name }} run: | git config --global user.name "Github_CI" 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 $REF_NAME git checkout -b $BRANCH_NAME 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 "$REF_NAME" git push origin $REF_NAME --force git commit -a -m "$BRANCH_NAME" git push origin $BRANCH_NAME --force comment-bot: permissions: write-all Loading Loading
.github/workflows/gitlab-codebuild.yml +4 −4 Original line number Diff line number Diff line Loading @@ -19,17 +19,17 @@ jobs: - uses: actions/checkout@v4 - name: Run script env: REF_NAME: ${{ github.ref_name }} BRANCH_NAME: ${{ github.head_ref || github.ref_name }} EVENT_TYPE: ${{ github.event_name }} run: | git config --global user.name "Github_CI" 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 $REF_NAME git checkout -b $BRANCH_NAME 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 "$REF_NAME" git push origin $REF_NAME --force git commit -a -m "$BRANCH_NAME" git push origin $BRANCH_NAME --force comment-bot: permissions: write-all Loading