Skip to content

Commit

Permalink
Output workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed May 22, 2023
1 parent 3a08186 commit 11fb8d3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions misc/action/fetch-workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ runs:
for i in {1..60}
do
workflows=$(curl https://github.com/EnricoMi/publish-unit-test-result-action | grep "Used by" | sed -e "s/.*title=//" -e 's/[",]//g' | cut -d " " -f 1)
if [ "$workflows" -gt 0 ]; then break; fi
echo attempt $i failed
if [ "$workflows" -gt 0 ]
then
echo "total=$workflows" >> $GITHUB_OUTPUT
break
fi
echo "Attempt $i failed"
sleep 60
done
echo "Giving up"
exit 1
branding:
icon: 'download-cloud'
Expand Down

0 comments on commit 11fb8d3

Please sign in to comment.