@@ -38,6 +38,21 @@ concurrency:
38
38
run-name : ${{ inputs.node_tag || inputs.signer_tag }}
39
39
40
40
jobs :
41
+ # # This job's sole purpose is trigger a secondary approval outside of the matrix jobs below.
42
+ # # - If this job isn't approved to run, then the subsequent jobs will also not run - for this reason, we always exit 0
43
+ # # - `andon-cord` requires the repo environment "Build Release", which will trigger a secondary approval step before running this workflow.
44
+ andon-cord :
45
+ if : |
46
+ inputs.node_tag != '' ||
47
+ inputs.signer_tag != ''
48
+ name : Andon Cord
49
+ runs-on : ubuntu-latest
50
+ environment : " Build Release"
51
+ steps :
52
+ - name : Check Approval
53
+ id : check
54
+ run : |
55
+ exit 0
41
56
# # Build arch dependent binaries from source
42
57
# #
43
58
# # Runs when the following is true:
48
63
inputs.signer_tag != ''
49
64
name : Build Binaries
50
65
runs-on : ubuntu-latest
51
- environment : " Build Release"
66
+ needs :
67
+ - andon-cord
52
68
strategy :
53
69
# # Run a maximum of 10 builds concurrently, using the matrix defined in inputs.arch
54
70
max-parallel : 10
91
107
name : Create Release
92
108
runs-on : ubuntu-latest
93
109
needs :
110
+ - andon-cord
94
111
- build-binaries
95
112
permissions :
96
113
contents : write
@@ -107,7 +124,6 @@ jobs:
107
124
is_signer_release : ${{ inputs.is_signer_release }}
108
125
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
109
126
110
-
111
127
# # Builds arch dependent Docker images from binaries
112
128
# #
113
129
# # Note: this step requires the binaries in the create-release step to be uploaded
@@ -120,6 +136,7 @@ jobs:
120
136
name : Docker Image (Binary)
121
137
runs-on : ubuntu-latest
122
138
needs :
139
+ - andon-cord
123
140
- build-binaries
124
141
- create-release
125
142
strategy :
@@ -152,6 +169,7 @@ jobs:
152
169
name : Create Downstream PR (${{ github.ref_name }})
153
170
runs-on : ubuntu-latest
154
171
needs :
172
+ - andon-cord
155
173
- build-binaries
156
174
- create-release
157
175
- docker-image
0 commit comments