File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1- on : push
1+ name : Build and Test
2+
3+ on :
4+ push :
5+ workflow_call :
6+ outputs :
7+ build_status :
8+ description : " Status of the build job"
9+ value : ${{ jobs.build.outputs.status }}
210
311permissions :
412 contents : write
513
614jobs :
715 build :
816 runs-on : ubuntu-latest
17+ outputs :
18+ status : ${{ job.status }}
919 steps :
1020 - name : Checkout
1121 uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ permissions:
55
66on :
77 workflow_run :
8- workflows : ["go "]
8+ workflows : ["Build and Test "]
99 types :
1010 - completed
1111
1212jobs :
1313 test :
14- if : ${{ github.event.workflow_run.conclusion == 'success ' }}
14+ if : ${{ github.event.workflow_run.jobs.*.name == 'build ' }}
1515 runs-on : ${{ matrix.os }}
1616 strategy :
1717 matrix :
You can’t perform that action at this time.
0 commit comments