Skip to content

Commit

Permalink
Support the case where more than one action type could exist
Browse files Browse the repository at this point in the history
  • Loading branch information
clenfest committed Jul 15, 2024
1 parent 2322112 commit 0e1aa6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ commands:
while [ $attempt -lt $max_attempts ]; do
RESULT=`curl -s -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/apollographql/federation-rs/actions/runs?head_sha=$CIRCLE_SHA1" | jq -r '.workflow_runs[].conclusion'`
"https://api.github.com/repos/apollographql/federation-rs/actions/runs?head_sha=$CIRCLE_SHA1" | jq -r '.workflow_runs[] | {conclusion,name} | select(.name == "Mac_x86_tests").conclusion' | head -1`
echo "Attempt $((attempt+1)) of $max_attempts: RESULT is $RESULT"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests-mac-x86.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Mac_x86_tests

on:
push:
workflow_dispatch:
Expand Down

0 comments on commit 0e1aa6f

Please sign in to comment.