Skip to content

Commit 3fbdb49

Browse files
committed
Exit if run was not queued
1 parent 7dbfde2 commit 3fbdb49

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ ln -s "${REAL_PLAN_DIR}" "${PLANSHOME}"
3737
--metadata-branch "${GITHUB_REF#refs/heads/}" \
3838
--metadata-commit "${GITHUB_SHA}" | tee run.out
3939
TGID=$(awk '/run is queued with ID/ {print $10}' <run.out)
40+
41+
# Make sure the we received a run ID
42+
if [ -z "$TGID" ]
43+
then
44+
echo "${OUTPUT_OUTCOME}failure/not_queued"
45+
exit "${FAILURE}"
46+
fi
47+
4048
echo "${OUTPUT_ID}${TGID}"
4149

4250
echo "Got testground ID ${TGID}"

0 commit comments

Comments
 (0)