diff options
author | 2024-07-05 20:14:02 +0200 | |
---|---|---|
committer | 2024-07-05 20:14:02 +0200 | |
commit | 7a2d271210a6bf65a0fc0a7a9c8e64ca3c3446bf (patch) | |
tree | d3ccee0a4bf4840e432892cc61068489a67fdc37 /.github | |
parent | Create sentry releases using getsentry's action (diff) |
Fix transient issues in status embed
As seen in a dozen other Python Discord projects.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/status_embed.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/status_embed.yaml b/.github/workflows/status_embed.yaml index 8728383..1da81bf 100644 --- a/.github/workflows/status_embed.yaml +++ b/.github/workflows/status_embed.yaml @@ -24,7 +24,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 "::set-output name=pr_author_login::$(jq -r '.user.login // empty' pull_request_payload.json)" |