diff --git a/.github/workflows/workflow-tester8.yml b/.github/workflows/workflow-tester8.yml new file mode 100644 index 0000000000..571248e5e9 --- /dev/null +++ b/.github/workflows/workflow-tester8.yml @@ -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}}" \ No newline at end of file