-
Notifications
You must be signed in to change notification settings - Fork 171
32 lines (28 loc) · 1.07 KB
/
gitlab-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Github to Gitlab CI - Run CodeBuild
env:
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
on:
release:
types: [prereleased, released]
push:
branches:
- '*.*.*_RC*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run script
env:
ISIS_VERSION: ${{ github.event.release.tag_name || github.ref_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
git commit -a -m "$ISIS_VERSION"
git push origin RELEASE_$ISIS_VERSION --force