Skip to content

Commit

Permalink
Release trigger fixes (DOI-USGS#5681)
Browse files Browse the repository at this point in the history
* added release trigger

* added release trigger

* added release trigger

* added release trigger

* added release trigger

* whatever

* whatever

* whatever
  • Loading branch information
Kelvinrr authored Nov 25, 2024
1 parent 93104c0 commit 5c0b388
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/gitlab-release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
name: Github to Gitlab CI - Run CodeBuild

env:
ISIS_VERSION: ${{ steps.vars.outputs.tag }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}

on:
repository_dispatch:
types: [test_result]
release:
types: [prereleased, released]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Run script
env:
ISIS_VERSION: ${{ github.event.release.tag_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
echo $ISIS_VERSION
cd isis-codebuild-ci
git checkout -b RELEASE_$ISIS_VERSION
echo -e "\nenv: \n shell: bash \n variables: \n ISIS_VERSION: $ISIS_VERSION \n ANACONDA_API_TOKEN: $ANACONDA_TOKEN >> buildspec-release.yml
echo -e "\nenv: \n shell: bash \n variables: \n ISIS_VERSION: $ISIS_VERSION \n ANACONDA_API_TOKEN: $ANACONDA_TOKEN" >> buildspec-release.yml
git commit -a -m "$ISIS_VERSION"
git push origin RELEASE_$ISIS_VERSION --force

0 comments on commit 5c0b388

Please sign in to comment.