Skip to content

Commit 1a8e601

Browse files
Pigbibicodex
andcommitted
fix: publish lifecycle status after monitor alerts
Co-Authored-By: Codex <noreply@openai.com>
1 parent 8a561f7 commit 1a8e601

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/runtime-target-lifecycle.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ jobs:
9595
RUNTIME_GUARD_FAIL_WORKFLOW_ON_ALERT: "true"
9696
run: |
9797
set -uo pipefail
98+
set +e
9899
python scripts/cloud_run_runtime_guard.py > runtime-guard.log 2>&1
99100
exit_code=$?
101+
set -e
100102
cat runtime-guard.log
101103
if [ "$exit_code" -eq 0 ]; then
102104
status=pass
@@ -128,8 +130,10 @@ jobs:
128130
exit 0
129131
fi
130132
133+
set +e
131134
python scripts/execution_report_heartbeat.py > execution-heartbeat.log 2>&1
132135
exit_code=$?
136+
set -e
133137
cat execution-heartbeat.log
134138
if [ "$exit_code" -eq 0 ] && grep -qi 'heartbeat skipped' execution-heartbeat.log; then
135139
status=not_due

0 commit comments

Comments
 (0)