Skip to content

Commit f9854da

Browse files
committed
Ensure action fails if not run id is returned for testing.
1 parent 42ae671 commit f9854da

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,9 @@ jobs:
2828
workflow_inputs: "{\"cake\":\"delicious\"}"
2929
workflow_timeout_seconds: 30
3030
- name: Output fetched Run ID
31-
run: echo ${{ steps.return_dispatch.outputs.run_id}}
31+
run: |
32+
if ["${{ steps.return_dispatch.outputs.run_id }}" == ""]; then
33+
echo "Failed to return Run ID"
34+
exit 1
35+
fi
36+
run: echo ${{ steps.return_dispatch.outputs.run_id }}

0 commit comments

Comments
 (0)