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:
Check for application/x-gzip and application/gzip when looking for a release to download.
Document the GITHUB_RELEASE_ENDPOINT environmental variable for posterity.
When I began modifying the source, npm and TS were also yelling at me, so I also made the following changes:
Cast error to Error in main to avoid TS complaining about an unknown type.
Beautify tsconfig.json by making the comments line up.
Update jest, jest-circus, and js-test to 27.2.5, 27.2.5, and 27.0.5 (tests still worked after this change).
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 anapplication/x-gzip
MIME type instead ofapplication/gzip
, meaning the action would not work without modification. This pull request thus does the following:application/x-gzip
andapplication/gzip
when looking for a release to download.GITHUB_RELEASE_ENDPOINT
environmental variable for posterity.When I began modifying the source,
npm
and TS were also yelling at me, so I also made the following changes:error
toError
in main to avoid TS complaining about an unknown type.tsconfig.json
by making the comments line up.