Skip to content

Github to Gitlab CI - CodeBuild #1

Github to Gitlab CI - CodeBuild

Github to Gitlab CI - CodeBuild #1

name: Github to Gitlab CI - Run CodeBuild
env:
PR_NUMBER: ${{ github.event.number }}
on:
pull_request:
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run script
run: |
git clone https://gitlab-ci-token:${GITLAB_TOKEN}@code.chs.usgs.gov/asc/isis-codebuild-ci.git
cd isis-codebuild-ci
git checkout -b PR_$PR_NUMBER
echo -e "\nenv: \n shell: bash \n variables: \n PR_NUMBER: $PR_NUMBER \n MERGE_BRANCH: "dev"" >> buildspec.yml
git commit -a -m "pr_5504"
git push origin PR_$PR_NUMBER