Skip to content

Commit 78a961b

Browse files
committed
temp: ci poc
1 parent 9398b73 commit 78a961b

4 files changed

Lines changed: 76 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 }}"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 }}"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 }}"

0 commit comments

Comments
 (0)