Skip to content

Commit

Permalink
add workflow-tester8
Browse files Browse the repository at this point in the history
Signed-off-by: GuillaumeFalourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Jul 29, 2021
1 parent d6d194c commit a28a72f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/workflow-tester8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test 8

on:
release:
types: [published]
# tags:
# - 'prod-*'
# - 'dev-*'

jobs:
job1:
runs-on: ubuntu-latest
outputs:
tag_version: ${{ steps.get_tag_version.outputs.version }}
steps:
- name: Get the version
id: get_tag_version
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}

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

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

0 comments on commit a28a72f

Please sign in to comment.