File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Callable Workflow POC 1
2+ on :
3+ workflow_call :
4+ outputs :
5+ STATIC_OUT :
6+ description : " Static output from matrix job"
7+ value : ${{ jobs.dummy_matrix.outputs.STATIC_OUT }}
8+ jobs :
9+ dummy_matrix :
10+ runs-on : ubuntu-latest
11+ strategy :
12+ matrix :
13+ item : [a, b, c]
14+ outputs :
15+ STATIC_OUT : ${{ steps.dummy_step.outputs.STATIC_OUT }}
16+ steps :
17+ - name : Dummy Step
18+ id : dummy_step
19+ run : |
20+ echo "STATIC_OUT=static-value" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change 1+ name : Callable Workflow POC 2
2+ on :
3+ workflow_call :
4+ outputs :
5+ STATIC_OUT :
6+ description : " Static output from aggregate job"
7+ value : ${{ jobs.aggregate.outputs.STATIC_OUT }}
8+ jobs :
9+ dummy_matrix :
10+ runs-on : ubuntu-latest
11+ strategy :
12+ matrix :
13+ item : [a, b, c]
14+ outputs :
15+ STATIC_OUT : ${{ steps.dummy_step.outputs.STATIC_OUT }}
16+ steps :
17+ - name : Dummy Step
18+ id : dummy_step
19+ run : |
20+ echo "STATIC_OUT=static-value" >> $GITHUB_OUTPUT
21+ aggregate :
22+ needs : dummy_matrix
23+ runs-on : ubuntu-latest
24+ outputs :
25+ STATIC_OUT : ${{ needs.dummy_matrix.outputs.STATIC_OUT }}
26+ steps :
27+ - name : Aggregate Output
28+ run : echo "Aggregated STATIC_OUT: ${{ needs.dummy_matrix.outputs.STATIC_OUT }}"
Original file line number Diff line number Diff line change 1+ name : Caller Workflow 1
2+ on :
3+ workflow_dispatch :
4+ jobs :
5+ call_poc_1 :
6+ uses : ./.github/workflows/callable_workflow_poc_1.yml
7+ print_output :
8+ needs : call_poc_1
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Echo output (needs.call_poc_1.outputs.STATIC_OUT)
12+ run : echo "POC 1 output: ${{ needs.call_poc_1.outputs.STATIC_OUT }}"
13+ - name : Echo output (needs['call_poc_1'].outputs.STATIC_OUT)
14+ run : echo "POC 1 output alt: ${{ needs['call_poc_1'].outputs.STATIC_OUT }}"
Original file line number Diff line number Diff line change 1+ name : Caller Workflow 2
2+ on :
3+ workflow_dispatch :
4+ jobs :
5+ call_poc_2 :
6+ uses : ./.github/workflows/callable_workflow_poc_2.yml
7+ print_output :
8+ needs : call_poc_2
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Echo output (needs.call_poc_2.outputs.STATIC_OUT)
12+ run : echo "POC 2 output: ${{ needs.call_poc_2.outputs.STATIC_OUT }}"
13+ - name : Echo output (needs['call_poc_2'].outputs.STATIC_OUT)
14+ run : echo "POC 2 output alt: ${{ needs['call_poc_2'].outputs.STATIC_OUT }}"
You can’t perform that action at this time.
0 commit comments