Skip to content

Commit

Permalink
test(e2e): more debug options to check why the download fails
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Villanueva <[email protected]>
  • Loading branch information
danivilla9 committed Jan 13, 2025
1 parent 7effeb1 commit f326d3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ jobs:
if: matrix.os == 'macos-14'
run: |
ARCH=$(uname -m)
LATEST_RELEASE=$(curl -s https://api.github.com/repos/containers/podman/releases/latest | grep -o '"tag_name": "v[^"]*' | sed 's/"tag_name": "//' | sed 's/^\/\+//')
LATEST_RELEASE=$(curl -s -w "%{http_code}" -o response.txt https://api.github.com/repos/containers/podman/releases/latest | grep -o '"tag_name": "v[^"]*' | sed 's/"tag_name": "//' | sed 's/^\/\+//')
echo "LATEST_RELEASE => ${LATEST_RELEASE}"
echo "response.txt => $(cat response.txt)"
echo "DOWNLOAD ADDRESS => https://github.com/containers/podman/releases/download/${LATEST_RELEASE}/podman-installer-macos-${ARCH}.pkg"
echo "CURL COMMAND =>"
curl -LO -o ./podman-installer-macos-${ARCH}.pkg https://github.com/containers/podman/releases/download/${LATEST_RELEASE}/podman-installer-macos-${ARCH}.pkg
Expand Down

0 comments on commit f326d3b

Please sign in to comment.