File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Sync Ansible Project
3+ on :
4+ push :
5+ branches : [development]
6+
7+ jobs :
8+ define-matrix :
9+ runs-on : ubuntu-latest
10+
11+ outputs :
12+ colors : ${{ steps.colors.outputs.colors }}
13+
14+ steps :
15+ - name : Define Colors
16+ id : colors
17+ run : |
18+ echo 'colors=["red", "green", "blue"]' >> "$GITHUB_OUTPUT"
19+
20+ produce-artifacts :
21+ runs-on : ubuntu-latest
22+ needs : define-matrix
23+ strategy :
24+ matrix :
25+ color : ${{ fromJSON(needs.define-matrix.outputs.colors) }}
26+
27+ steps :
28+ - name : Define Color
29+ env :
30+ color : ${{ matrix.color }}
31+ run : |
32+ echo "$color" > color
33+ - name : Produce Artifact
34+ uses : actions/upload-artifact@v4
35+ with :
36+ name : ${{ matrix.color }}
37+ path : color
38+
39+ consume-artifacts :
40+ runs-on : ubuntu-latest
41+ needs :
42+ - define-matrix
43+ - produce-artifacts
44+ strategy :
45+ matrix :
46+ color : ${{ fromJSON(needs.define-matrix.outputs.colors) }}
47+
48+ steps :
49+ - name : Retrieve Artifact
50+ uses : actions/download-artifact@v4
51+ with :
52+ name : ${{ matrix.color }}
53+
54+ - name : Report Color
55+ run : |
56+ cat color
You can’t perform that action at this time.
0 commit comments