From f326d3b893cfa1060fc26d994ab6f3c9daede355 Mon Sep 17 00:00:00 2001 From: Daniel Villanueva Date: Mon, 13 Jan 2025 16:47:42 +0100 Subject: [PATCH] test(e2e): more debug options to check why the download fails Signed-off-by: Daniel Villanueva --- .github/workflows/pr-check.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml index f6f40ba..10f2c10 100644 --- a/.github/workflows/pr-check.yaml +++ b/.github/workflows/pr-check.yaml @@ -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