Experiment with calling a sub workflow #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test notification on sub workflow | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- run: sleep 10 | |
test-integration: | |
runs-on: ubuntu-latest | |
steps: | |
- run: sleep 15 | |
build-and-push: | |
needs: [test, test-integration] | |
runs-on: ubuntu-latest | |
steps: | |
- run: sleep 20 | |
test-notify: | |
needs: [test] | |
uses: ./.github/workflows/notify-slack.yaml | |
with: | |
run_id: ${{ github.run_id }} | |
test-integration-notify: | |
needs: [test-integration] | |
uses: ./.github/workflows/notify-slack.yaml | |
with: | |
run_id: ${{ github.run_id }} | |
build-and-push-notify: | |
needs: [build-and-push] | |
uses: ./.github/workflows/notify-slack.yaml | |
with: | |
run_id: ${{ github.run_id }} |