Skip to content

Commit

Permalink
Merge branch '8.0' of github.com:DOI-USGS/ISIS3 into 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelvinrr committed Nov 27, 2024
2 parents d1849e1 + 580bcad commit a7f5715
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/gitlab-codebuild.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Github to Gitlab CI - Run CodeBuild

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

on:
pull_request_target:
branches:
- '**'
push:
branches:
- '**'

jobs:
build:
Expand All @@ -16,15 +18,18 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run script
env:
REF_NAME: ${{ 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:[email protected]/astrogeology/isis-codebuild-ci.git
cd isis-codebuild-ci
git checkout -b PR_$PR_NUMBER
git checkout -b $REF_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 "$PR_NUMBER"
git push origin PR_$PR_NUMBER --force
git commit -a -m "$REF_NAME"
git push origin $REF_NAME --force
comment-bot:
permissions: write-all
Expand All @@ -42,4 +47,4 @@ jobs:
To view your [build log](https://us-west-2.codebuild.aws.amazon.com/project/eyJlbmNyeXB0ZWREYXRhIjoiNDJNZ2MxbHFKTkwxV1RyQUxJekdJY3FIanNqU29rMHB4Nk1YUzk4REIrZUZDeEtEaW9HQlZ1dTZOSHpML2VUTGVDekYydmVFcU9sUHJKN20wQzd1Q0UzSzJscnB0MElDb1M3Ti9GTlJYR1RuMWJTV3V1SkJTa3NoYmc9PSIsIml2UGFyYW1ldGVyU3BlYyI6IjF3U2NTSGlDcEtCc29YVnEiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D), please reference the build with source version: "PR_${{ github.event.number }}".
Additionally, check the latest "dev" source version to identify existing test failures. Please note that you are not responsible for the test failures that exist on both your PR and the dev branch.

0 comments on commit a7f5715

Please sign in to comment.