-
Notifications
You must be signed in to change notification settings - Fork 11
148 lines (126 loc) · 4.12 KB
/
params.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
---
# -------------------------------------------------------------------------------------------------
# Job Name
# -------------------------------------------------------------------------------------------------
name: params
# -------------------------------------------------------------------------------------------------
# Custom Variables
# -------------------------------------------------------------------------------------------------
env:
MATRIX: >-
[
{
"NAME": "tg",
"VERSION": [
"latest",
"TF-1.6 TG-0.55",
"TF-1.6 TG-0.54",
"TF-1.6 TG-0.53",
"TF-1.5 TG-0.53",
"TF-1.5 TG-0.52",
"TF-1.5 TG-0.51",
"TF-1.5 TG-0.50",
"TF-1.5 TG-0.49",
"TF-1.5 TG-0.48",
"TF-1.5 TG-0.47",
"TF-1.5 TG-0.46",
"TF-1.4 TG-0.50",
"TF-1.4 TG-0.49",
"TF-1.4 TG-0.48",
"TF-1.4 TG-0.47",
"TF-1.4 TG-0.46",
"TF-1.3 TG-0.50",
"TF-1.3 TG-0.49",
"TF-1.3 TG-0.48",
"TF-1.3 TG-0.47",
"TF-1.3 TG-0.46",
"TF-1.2 TG-0.41",
"TF-1.2 TG-0.40",
"TF-1.2 TG-0.39",
"TF-1.2 TG-0.38",
"TF-1.2 TG-0.37",
"TF-1.1 TG-0.39",
"TF-1.1 TG-0.38",
"TF-1.1 TG-0.37",
"TF-1.1 TG-0.36",
"TF-1.1 TG-0.35",
"TF-1.0 TG-0.38",
"TF-1.0 TG-0.37",
"TF-1.0 TG-0.36",
"TF-1.0 TG-0.35",
"TF-1.0 TG-0.34",
"TF-0.15 TG-0.34",
"TF-0.15 TG-0.33",
"TF-0.15 TG-0.32",
"TF-0.15 TG-0.31",
"TF-0.15 TG-0.30",
"TF-0.14 TG-0.34",
"TF-0.14 TG-0.33",
"TF-0.14 TG-0.32",
"TF-0.14 TG-0.31",
"TF-0.14 TG-0.30",
"TF-0.13 TG-0.34",
"TF-0.13 TG-0.33",
"TF-0.13 TG-0.32",
"TF-0.13 TG-0.31",
"TF-0.13 TG-0.30"
],
"FLAVOUR": ["latest"],
"ARCH": ["linux/amd64", "linux/386", "linux/arm64"]
},
{
"NAME": "tg",
"VERSION": [
"TF-0.12 TG-0.24",
"TF-0.12 TG-0.23",
"TF-0.12 TG-0.22",
"TF-0.12 TG-0.21",
"TF-0.12 TG-0.20",
"TF-0.12 TG-0.19",
"TF-0.11 TG-0.18"
],
"FLAVOUR": ["latest"],
"ARCH": ["linux/amd64", "linux/386"]
}
]
# -------------------------------------------------------------------------------------------------
# When to run
# -------------------------------------------------------------------------------------------------
on:
workflow_call:
outputs:
matrix:
description: "The determined version matrix"
value: ${{ jobs.params.outputs.matrix }}
refs:
description: "The determined git ref matrix (only during scheduled run)"
value: ${{ jobs.params.outputs.refs }}
jobs:
params:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
refs: ${{ steps.set-refs.outputs.matrix }}
steps:
- name: "[Set-Output] Matrix"
id: set-matrix
run: |
echo "matrix=$( echo '${{ env.MATRIX }}' | jq -M -c )" >> $GITHUB_OUTPUT
- name: "[Set-Output] Matrix 'Refs' (master branch and latest tag)"
id: set-refs
uses: cytopia/[email protected]
with:
repository_default_branch: master
branches: master
num_latest_tags: 0
if: github.event_name == 'schedule'
- name: "[DEBUG] Show settings'"
run: |
echo 'Matrix'
echo '--------------------'
echo '${{ steps.set-matrix.outputs.matrix }}'
echo
echo 'Matrix: Refs'
echo '--------------------'
echo '${{ steps.set-matrix-refs.outputs.matrix }}'
echo