-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c718541
commit 5ac230a
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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 | ||
|