Skip to content

Commit b9c1336

Browse files
committed
fix(ci): iterate releases to find one with assets
1 parent 19cca30 commit b9c1336

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/auto-fix-issues.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ jobs:
5858
env:
5959
GH_TOKEN: ${{ secrets.GH_PAT }}
6060
run: |
61-
TAG=$(gh release list --repo evotai/evot --limit 20 --json tagName,assets --jq '[.[] | select(.assets | length > 0)][0].tagName')
62-
gh release download "$TAG" --repo evotai/evot --pattern "evot-*-x86_64-unknown-linux-gnu.tar.gz"
61+
for TAG in $(gh release list --repo evotai/evot --limit 10 --json tagName --jq '.[].tagName'); do
62+
if gh release download "$TAG" --repo evotai/evot --pattern "evot-*-x86_64-unknown-linux-gnu.tar.gz" 2>/dev/null; then
63+
echo "Downloaded evot from $TAG"
64+
break
65+
fi
66+
done
6367
tar -xzf evot-*.tar.gz && chmod +x bin/evot
6468
echo "$PWD/bin" >> "$GITHUB_PATH"
6569

0 commit comments

Comments
 (0)