Skip to content

Commit d6c2bdc

Browse files
author
Cory Schwartz
committed
output testground ID
1 parent 791f5bc commit d6c2bdc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ outputs:
2121
description: 'status of the testground run, i.e. completed/cancled'
2222
outcome:
2323
description: 'high-level result of the test'
24+
testground_id:
25+
description: 'testground identifier'
2426
runs:
2527
using: 'docker'
2628
image: './Dockerfile'

entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ FAILURE=1
1111
# Note that if you echo these strings, they will not be visible in the action log.
1212
OUTPUT_STATUS="::set-output name=status::"
1313
OUTPUT_OUTCOME="::set-output name=outcome::"
14+
OUTPUT_ID="::set-output name=testground_id"
1415

1516
BACKEND="${INPUT_BACKEND_PROTO}"'://'"${INPUT_BACKEND_ADDR}"
1617

@@ -32,6 +33,7 @@ ln -s "${REAL_PLAN_DIR}" "${PLANSHOME}"
3233
# so instead, do a long poll.
3334
/testground --endpoint "${BACKEND}" run composition -f "${REAL_COMP_FILE}" | tee run.out
3435
TGID=$(awk '/run is queued with ID/ {print $10}' <run.out)
36+
echo "${OUTPUT_ID}${TGID}"
3537

3638
echo "Got testground ID ${TGID}"
3739
echo -n "Testground started: "; date

0 commit comments

Comments
 (0)