ci(mantis): fix telegram run wait before checkout

This commit is contained in:
Ayaan Zaidi
2026-05-12 10:39:12 +05:30
parent b859e0f2ba
commit 16cfc83643
3 changed files with 3 additions and 2 deletions

View File

@@ -239,7 +239,7 @@ jobs:
while true; do
blockers="$(
for workflow in mantis-telegram-desktop-proof.yml mantis-telegram-live.yml; do
gh run list --workflow "$workflow" --limit 100 --json databaseId,status,createdAt,url \
gh run list --repo "$GITHUB_REPOSITORY" --workflow "$workflow" --limit 100 --json databaseId,status,createdAt,url \
| jq -r \
--argjson current_id "$GITHUB_RUN_ID" \
--arg current_created "$current_created" \

View File

@@ -260,7 +260,7 @@ jobs:
while true; do
blockers="$(
for workflow in mantis-telegram-desktop-proof.yml mantis-telegram-live.yml; do
gh run list --workflow "$workflow" --limit 100 --json databaseId,status,createdAt,url \
gh run list --repo "$GITHUB_REPOSITORY" --workflow "$workflow" --limit 100 --json databaseId,status,createdAt,url \
| jq -r \
--argjson current_id "$GITHUB_RUN_ID" \
--arg current_created "$current_created" \

View File

@@ -85,6 +85,7 @@ describe("Mantis Telegram Desktop proof workflow", () => {
]) {
expect(step.run).toContain("mantis-telegram-desktop-proof.yml");
expect(step.run).toContain("mantis-telegram-live.yml");
expect(step.run).toContain('gh run list --repo "$GITHUB_REPOSITORY"');
expect(step.run).toContain("GITHUB_RUN_ID");
expect(step.run).toContain(".createdAt < $current_created");
expect(step.run).toContain("sleep 60");