Skip to content

Commit

Permalink
ci(github-action): auto merge 94
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 13, 2024
1 parent 7f24e94 commit 4a8a76c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/sync-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,15 @@ jobs:
max_retries=3
retry_count=0
until [ "$retry_count" -ge "$max_retries" ]; do
vendor=$(nix --log-format raw build .#$project 2>&1 | grep "got: " | awk '/got: / {print $NF}')
vendor=$(nix --log-format raw build .#$project 2>&1 | grep "got: " | awk '/got: / {print $NF}' || echo "")
if [ -n "$vendor" ]; then
break
fi
retry_count=$((retry_count + 1))
echo "Retrying nix command and awk extraction ($retry_count/$max_retries)..."
sleep 3
done
echo "Final vendor value: '$vendor'"
if [ -z "$vendor" ]; then
echo "awk extraction failed after $max_retries attempts."
exit 1
Expand Down

0 comments on commit 4a8a76c

Please sign in to comment.