Skip to content

Commit 6adba43

Browse files
committed
debug: add verbose output for release download failures
1 parent 62149cc commit 6adba43

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/actions/build-website/action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,17 @@ runs:
8383
# Iterate through releases until we find one with library-docs.tar.gz
8484
for TAG in $RELEASES; do
8585
echo "Checking release: ${TAG}"
86-
if gh release download "${TAG}" \
86+
DOWNLOAD_OUTPUT=$(gh release download "${TAG}" \
8787
--repo ${{ github.repository }} \
8888
--pattern "library-docs.tar.gz" \
89-
--dir /tmp 2>/dev/null; then
89+
--dir /tmp 2>&1) && {
9090
echo "Downloaded library docs from release: ${TAG}"
9191
DOWNLOADED=true
9292
break
93-
else
93+
} || {
9494
echo " No library-docs.tar.gz in ${TAG}, trying next..."
95-
fi
95+
echo " Debug: ${DOWNLOAD_OUTPUT}"
96+
}
9697
done
9798
9899
if [ "$DOWNLOADED" = false ]; then

0 commit comments

Comments
 (0)