mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
ci(mantis): fix telegram run wait before checkout
This commit is contained in:
@@ -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" \
|
||||
|
||||
2
.github/workflows/mantis-telegram-live.yml
vendored
2
.github/workflows/mantis-telegram-live.yml
vendored
@@ -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" \
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user