Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .runseal/wrappers/release.seal
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
5 changes: 4 additions & 1 deletion app/tests/operator/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:?}"
;;
Expand Down Expand Up @@ -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
"
);
Expand Down
Loading