Trigger a workflow using workflow_run #4
This file contains hidden or 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: Build | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: ["Trigger a workflow using workflow_run"] # This build.yaml workflow iwll only run in master beanch when Trigger a workflow using workflow_run is comlpeted | |
types: [completed] | |
# branches-ignore: | |
# - "feature/*" | |
branches: | |
- "main" | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: echo 1 | |
run: echo "i am a cat1" | |
- name: echo 2 | |
run: echo "i am a cat2" | |
- name: echo 3 | |
run: echo "i am a cat3" | |
- name: println | |
run: echo "testing out workflow to be ran from another wrkflow using workflow_run methd" | |
- name: complete | |
run: echo "complete" |