Skip to content

Commit d1acc6e

Browse files
authored
use curl to download pr artifact (#123)
1 parent b297eb3 commit d1acc6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/status_embed.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
curl -s -H "Authorization: token $GITHUB_TOKEN" ${{ github.event.workflow_run.artifacts_url }} > artifacts.json
4040
DOWNLOAD_URL=$(cat artifacts.json | jq -r '.artifacts[] | select(.name == "pull-request-payload") | .archive_download_url')
4141
[ -z "$DOWNLOAD_URL" ] && exit 1
42-
wget --quiet --header="Authorization: token $GITHUB_TOKEN" -O pull_request_payload.zip $DOWNLOAD_URL || exit 2
42+
curl -sSL -H "Authorization: token $GITHUB_TOKEN" -o pull_request_payload.zip $DOWNLOAD_URL || exit 2
4343
unzip -p pull_request_payload.zip > pull_request_payload.json
4444
[ -s pull_request_payload.json ] || exit 3
4545
echo "::set-output name=pr_author_login::$(jq -r '.user.login // empty' pull_request_payload.json)"

0 commit comments

Comments
 (0)