Skip to content

Commit

Permalink
debug 3
Browse files Browse the repository at this point in the history
  • Loading branch information
uvidyadharan committed Aug 6, 2024
1 parent 37db439 commit 85bce5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,15 @@ jobs:
run: |
curl -s "https://api.github.com/repos/$GITHUB_REPOSITORY/actions/artifacts?per_page=100" > artifacts.json
DOWNLOAD_URL=$(jq -r '.artifacts[] | select(.name | startswith("LINKCHECK--")) | .archive_download_url' artifacts.json | head -n 1)
DOWNLOAD_URL=$(jq -r '.artifacts[] | select(.name | startswith("LINKCHECK--1")) | .archive_download_url' artifacts.json | head -n 1)
if [ -z "$DOWNLOAD_URL" ]; then
echo "No previous LINKCHECK artifact found"
exit 0
fi
# Print the URL so that it's easier to debug if something goes wrong
echo "Downloading $DOWNLOAD_URL"
curl -L -o linkcheck.zip "$DOWNLOAD_URL"
Expand Down

0 comments on commit 85bce5f

Please sign in to comment.