Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: download artifacts as binary blobs and follow redirects #118

Merged
merged 2 commits into from Mar 26, 2024

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Mar 25, 2024

I'm sorry for not testing properly in #115. The stuff still fails, because pygithub doesn't follow redirects and the artifact is a binary blob, not JSON (I tested it this time).

#113 noted that using requests isn't nice, so I'm using urllib3.
The accept header might look weird, but the documentation recommends this even though we get a zip returned 馃檭.

I've also noticed that this action still uses actions/upload-action@v3 (uses deprecated node version), so I updated it to v4.

While testing, I noticed that the action fails even though it succeeded, because since #103, the action exits with the amount of comments. I'd like to open a PR (after this one) that adds an option to disable this.

Copy link
Owner

@ZedThree ZedThree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Nerixyz! This is tricky stuff to test, I really wish we had some better testing infrastructure for this

@ZedThree ZedThree merged commit fddb616 into ZedThree:master Mar 26, 2024
1 check passed
@Nerixyz Nerixyz deleted the fix/more-pr branch March 26, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants