@@ -126,15 +126,16 @@ jobs:
126
126
smp-version : ${{ steps.experimental-meta.outputs.SMP_CRATE_VERSION }}
127
127
lading-version : ${{ steps.experimental-meta.outputs.LADING_VERSION }}
128
128
steps :
129
+
129
130
- uses : actions/checkout@v3
130
131
131
- - name : Find PR branch name (issue_comment)
132
+ - name : Checkout PR (issue_comment)
132
133
if : github.event_name == 'issue_comment'
133
134
env :
134
135
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
135
136
run : gh pr checkout ${{ github.event.issue.number }}
136
137
137
- - name : Find PR branch name (issue_comment)
138
+ - name : Get PR branch name (issue_comment)
138
139
id : get-pr-branch-name
139
140
if : github.event_name == 'issue_comment'
140
141
env :
@@ -184,6 +185,21 @@ jobs:
184
185
echo "comparison sha is: ${COMPARISON_SHA}"
185
186
echo "comparison tag is: ${COMPARISON_TAG}"
186
187
188
+ if [ "${BASELINE_SHA}" = "" ] ; then
189
+ echo "BASELINE_SHA not found, exiting."
190
+ exit 1
191
+ fi
192
+
193
+ if [ "${COMPARISON_SHA}" = "" ] ; then
194
+ echo "COMPARISON_SHA not found, exiting."
195
+ exit 1
196
+ fi
197
+
198
+ if [ "${PR_NUMBER}" = "" ] ; then
199
+ echo "PR_NUMBER not found, exiting."
200
+ exit 1
201
+ fi
202
+
187
203
# If triggered by merge queue, the PR number is not available in the payload. While we restrict the number of PRs in the
188
204
# queue to 1, we can get the PR number by parsing the merge queue temp branch's ref.
189
205
- name : Get PR metadata (merge queue)
@@ -213,6 +229,21 @@ jobs:
213
229
echo "comparison sha is: ${COMPARISON_SHA}"
214
230
echo "comparison tag is: ${COMPARISON_TAG}"
215
231
232
+ if [ "${BASELINE_SHA}" = "" ] ; then
233
+ echo "BASELINE_SHA not found, exiting."
234
+ exit 1
235
+ fi
236
+
237
+ if [ "${COMPARISON_SHA}" = "" ] ; then
238
+ echo "COMPARISON_SHA not found, exiting."
239
+ exit 1
240
+ fi
241
+
242
+ if [ "${PR_NUMBER}" = "" ] ; then
243
+ echo "PR_NUMBER not found, exiting."
244
+ exit 1
245
+ fi
246
+
216
247
- name : Setup experimental metadata
217
248
id : experimental-meta
218
249
run : |
0 commit comments