Skip to content

Commit fe210af

Browse files
Garandorclaude
andauthored
fix: truncate expected SHA to match /version short SHA (#223)
The /version endpoint returns a 7-character short SHA, but the workflow was comparing against the full 40-character SHA from github.sha / source_sha, so the version check could never match. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5f173ce commit fe210af

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/wait-for-api-restart.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ jobs:
105105
BASE_URL="${{ steps.resolve-url.outputs.api_root_url }}"
106106
TIMEOUT="${{ inputs.timeout }}"
107107
EXPECTED_SHA="${{ inputs.expected_sha }}"
108+
# /version returns a short (7-char) SHA, so truncate to match
109+
EXPECTED_SHA="${EXPECTED_SHA:0:7}"
108110
VERSION_URL="${BASE_URL}/version"
109111
HEALTH_URL="${BASE_URL%/core/v1}/health"
110112

0 commit comments

Comments
 (0)