From 7fd7315c1beeb8b844721ade58fe40213fdbc339 Mon Sep 17 00:00:00 2001 From: PerishCode Date: Sun, 7 Jun 2026 22:31:51 +0800 Subject: [PATCH] fix: watch current release run --- .runseal/wrappers/release.seal | 3 ++- app/tests/operator/repo.rs | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.runseal/wrappers/release.seal b/.runseal/wrappers/release.seal index 18493b2..e075bd0 100644 --- a/.runseal/wrappers/release.seal +++ b/.runseal/wrappers/release.seal @@ -43,6 +43,7 @@ if eq "$dry_run" true; then else gh --version gh auth status + ref_sha=$(git rev-parse "$ref") trigger_output=$(gh workflow run "$workflow" --ref "$ref" -f "ref=$ref" -f "version_override=$version") if not_empty "$trigger_output"; then print "$trigger_output" @@ -54,7 +55,7 @@ else attempt=0 raw='[]' while lt "$attempt" 6; do - raw=$(gh run list --workflow "$workflow" --branch "$ref" --event workflow_dispatch --limit 1 --json databaseId) + raw=$(gh run list --workflow "$workflow" --branch "$ref" --commit "$ref_sha" --event workflow_dispatch --limit 1 --json databaseId) if json_not_empty "$raw"; then run_id=$(seal json get "$raw" '.[0].databaseId') break diff --git a/app/tests/operator/repo.rs b/app/tests/operator/repo.rs index df01d47..a829945 100644 --- a/app/tests/operator/repo.rs +++ b/app/tests/operator/repo.rs @@ -34,6 +34,9 @@ case "${1:-}" in [ "${2:-}" = "--show-current" ] || exit 9 printf '%s\n' "${RUNSEAL_TEST_BRANCH:-feat/seal}" ;; + rev-parse) + printf '%s\n' "${RUNSEAL_TEST_REF_SHA:-abc123}" + ;; *) printf 'git %s\n' "$*" >> "${RUNSEAL_TEST_LOG:?}" ;; @@ -450,7 +453,7 @@ fn release_uses_latest_run() { command_log(&fx), "\ gh workflow run release-beta.yml --ref feature/ref -f ref=feature/ref -f version_override= -gh run list --workflow release-beta.yml --branch feature/ref --event workflow_dispatch --limit 1 --json databaseId +gh run list --workflow release-beta.yml --branch feature/ref --commit abc123 --event workflow_dispatch --limit 1 --json databaseId gh run watch 67890 --interval 10 " );