Skip to content

Commit

Permalink
update workflow-tester8
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Falourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Oct 31, 2022
1 parent c52bcf1 commit 131e34d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/workflow-tester8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,38 @@ jobs:
if: contains( needs.job1.outputs.tag_version , 'prod-')
steps:
- run: echo "${{needs.job1.outputs.tag_version}}"

job4:
runs-on: ubuntu-latest
outputs:
tag_version: ${{ steps.get_tag_version.outputs.version }}
steps:
- name: Get the version
id: get_tag_version
run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT

job5:
runs-on: ubuntu-latest
needs: [job4]
if: contains( needs.job4.outputs.tag_version , 'dev-')
steps:
- run: echo "${{needs.job4.outputs.tag_version}}"

job6:
runs-on: ubuntu-latest
needs: [job4]
if: contains( needs.job4.outputs.tag_version , 'prod-')
steps:
- run: echo "${{needs.job4.outputs.tag_version}}"

job7:
runs-on: ubuntu-latest
steps:
- name: Extract branch tag
id: version
run: |
BRANCH=${GITHUB_REF##*/}
VERSION="123"
echo $VERSION
echo "tag=$VERSION" >> $GITHUB_OUTPUT
- run: echo ${{ steps.version.outputs.tag }}

0 comments on commit 131e34d

Please sign in to comment.