Skip to content
Snippets Groups Projects
Unverified Commit 5ac230a8 authored by Christine Kim's avatar Christine Kim Committed by GitHub
Browse files

Update gitlab-codebuild.yml

parent c718541d
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment