actions-rs / tarpaulin

📈 GitHub Action for code coverage reporting with tarpaulin
MIT License
89 stars 16 forks source link

Document `GITHUB_RELEASE_ENDPOINT` and check for `application/x-gzip` #18

Closed ghost closed 3 years ago

ghost commented 3 years ago

This pull request is motivated from wanting to use a fork of tarpaulin with my own projects. While inspecting this action's source, I noticed there was the aforementioned environmental variable for exactly what I wanted to do. However, uploading a tar.gz file with a GitHub release seems to assign it an application/x-gzip MIME type instead of application/gzip, meaning the action would not work without modification. This pull request thus does the following:

When I began modifying the source, npm and TS were also yelling at me, so I also made the following changes: