From a8bb0446767f42529574ea5c6878f92e2652e339 Mon Sep 17 00:00:00 2001 From: Kelvin Rodriguez Date: Sun, 24 Nov 2024 21:13:57 -0700 Subject: [PATCH] Adds CI trigger to deploy RC branches (#5682) * added release trigger * added release trigger * added release trigger * added release trigger * added release trigger * whatever * whatever * whatever * added rc workflow * appended release to also work on RCs * added branchtrigger * added branchtrigger * added branchtrigger --- .github/workflows/gitlab-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gitlab-release.yml b/.github/workflows/gitlab-release.yml index be0fac8737..ceea589aee 100644 --- a/.github/workflows/gitlab-release.yml +++ b/.github/workflows/gitlab-release.yml @@ -7,7 +7,9 @@ env: on: release: types: [prereleased, released] - + push: + branches: + - '*.*.*_RC*' jobs: build: runs-on: ubuntu-latest @@ -16,7 +18,7 @@ jobs: - uses: actions/checkout@v4 - name: Run script env: - ISIS_VERSION: ${{ github.event.release.tag_name }} + 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" @@ -27,3 +29,4 @@ jobs: 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 +