Skip to content

Commit

Permalink
add run-on-push-to-rc workflow
Browse files Browse the repository at this point in the history
Signed-off-by: GuillaumeFalourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Oct 28, 2023
1 parent 1098045 commit cc065bd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/69-run-on-push-to-rc.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit cc065bd

Please sign in to comment.