Skip to content

Commit

Permalink
Update gitlab-codebuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chkim-usgs authored Nov 27, 2024
1 parent c718541 commit 5ac230a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/gitlab-codebuild.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Github to Gitlab CI - Run CodeBuild

env:
PR_NUMBER: ${{ github.event.number }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}

on:
Expand All @@ -26,10 +27,10 @@ jobs:
git config --global user.email "project_14468_bot_3f7d8e1a392afd88ead5f3f3154e809d@noreply.gitlab.com"
git clone https://isis-codebuild-ci:[email protected]/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
Expand Down

0 comments on commit 5ac230a

Please sign in to comment.