aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jchristgit <[email protected]>2023-12-19 12:54:22 +0100
committerGravatar GitHub <[email protected]>2023-12-19 12:54:22 +0100
commit1eda21b824162ceadda85a2adb26d5b54c362861 (patch)
tree1a2c68d37e6b4e044c60e6bfece66f3e6049e86c
parentBump pydis-core from 10.5.0 to 10.5.1 (#1414) (diff)
parentdownload pull request artifacts with curl (diff)
Merge pull request #1415 from shtlrs/download-artifacts-with-curl
Download pull request artifact using curl #1185
-rw-r--r--.github/workflows/status_embed.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/status_embed.yaml b/.github/workflows/status_embed.yaml
index e5bdc8e9..68b4e4ab 100644
--- a/.github/workflows/status_embed.yaml
+++ b/.github/workflows/status_embed.yaml
@@ -39,7 +39,7 @@ jobs:
curl -s -H "Authorization: token $GITHUB_TOKEN" ${{ github.event.workflow_run.artifacts_url }} > artifacts.json
DOWNLOAD_URL=$(cat artifacts.json | jq -r '.artifacts[] | select(.name == "pull-request-payload") | .archive_download_url')
[ -z "$DOWNLOAD_URL" ] && exit 1
- wget --quiet --header="Authorization: token $GITHUB_TOKEN" -O pull_request_payload.zip $DOWNLOAD_URL || exit 2
+ curl -sSL -H "Authorization: token $GITHUB_TOKEN" -o pull_request_payload.zip $DOWNLOAD_URL || exit 2
unzip -p pull_request_payload.zip > pull_request_payload.json
[ -s pull_request_payload.json ] || exit 3
echo "pr_author_login=$(jq -r '.user.login // empty' pull_request_payload.json)" >> $GITHUB_OUTPUT