From cc065bd8b52fa4d439924eb67d9283d010f7feb3 Mon Sep 17 00:00:00 2001 From: GuillaumeFalourd Date: Sat, 28 Oct 2023 17:31:38 -0300 Subject: [PATCH] add run-on-push-to-rc workflow Signed-off-by: GuillaumeFalourd --- .github/workflows/69-run-on-push-to-rc.yml | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/69-run-on-push-to-rc.yml diff --git a/.github/workflows/69-run-on-push-to-rc.yml b/.github/workflows/69-run-on-push-to-rc.yml new file mode 100644 index 0000000000..12f1b4ad12 --- /dev/null +++ b/.github/workflows/69-run-on-push-to-rc.yml @@ -0,0 +1,30 @@ +name: 69 - Run on push to rc + +on: + push: + branches: + - 'rc/*.*.*' + +jobs: + release-candidate-tag: + runs-on: ubuntu-latest + outputs: + tag: ${{ steps.tag.outputs.tag }} + steps: + - name: Extract branch tag if necessary + id: tag + run: | + BRANCH=${{ github.head_ref }} + TAG="${BRANCH//rc\//""}" + echo $TAG + echo "tag=$TAG" >> $GITHUB_OUTPUT + + release: + needs: + - release-candidate-tag + runs-on: ubuntu-latest + env: + TAG: ${{ needs.release-candidate-tag.outputs.tag }} + steps: + - name: echo TAG + run: Echo ${{ env.TAG }}