Skip to content

Commit 1ca5fe7

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

4 files changed

Lines changed: 95 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: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Caller Workflow 1
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- '**'
7+
jobs:
8+
call_poc_1:
9+
uses: ./.github/workflows/callable_workflow_poc_1.yml
10+
print_output:
11+
needs: call_poc_1
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Echo output (needs.call_poc_1.outputs.STATIC_OUT)
15+
run: 'echo "POC 1 output: ${{ needs.call_poc_1.outputs.STATIC_OUT }}"'
16+
17+
call_poc_11:
18+
uses: ./.github/workflows/callable_workflow_poc_1.yml
19+
signal_deploy:
20+
needs: call_poc_11
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Dummy step to separate jobs
24+
run: echo "Dummy step"
25+
print_output11:
26+
needs: signal_deploy
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Echo output (needs.call_poc_11.outputs.STATIC_OUT)
30+
run: 'echo "POC 1 output: ${{ needs.call_poc_11.outputs.STATIC_OUT }}"'
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Caller Workflow 2
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- '**'
7+
jobs:
8+
call_poc_2:
9+
uses: ./.github/workflows/callable_workflow_poc_2.yml
10+
print_output:
11+
needs: call_poc_2
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Echo output (needs.call_poc_2.outputs.STATIC_OUT)
15+
run: 'echo "POC 2 output: ${{ needs.call_poc_2.outputs.STATIC_OUT }}"'
16+
- name: Echo output (needs['call_poc_2'].outputs.STATIC_OUT)
17+
run: echo "POC 2 output alt ${{ needs['call_poc_2'].outputs.STATIC_OUT }}"

0 commit comments

Comments
 (0)