Skip to content

Commit e0bd8c7

Browse files
committed
just: only look for completed CI workflows
This fixes an edge case where CI is running for the current commit when we are releasing. Ran into this this morning.
1 parent 1168eb2 commit e0bd8c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Justfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ assemble-exe-artifacts exe commit dest:
5151

5252
RUN_ID=$(gh run list \
5353
--workflow {{exe}}.yml \
54-
--json databaseId,headSha | \
54+
--json databaseId,headSha \
55+
--status completed | \
5556
jq --raw-output '.[] | select(.headSha=="{{commit}}") | .databaseId' | head -n 1)
5657

5758
if [ -z "${RUN_ID}" ]; then

0 commit comments

Comments
 (0)