Releases: NathanielRN/github-action-benchmark
Release list
Replace github payload references with context references
The action was still referencing payload in some cases which would cause the code to break on schedule: or workflow_dispatch: events.
We expect that the github.context.repo object is always available no matter what the GitHub event is, so we use that as much as possible.
There is one field, github.context.payload.repository.private which is not available in all events, so we leave that as a FIXME and let is assume the repo is "public" by default.
Fallback to GitHub REST when commit info is missing
The workflow_dispatch: and schedule: GitHub workflow events do not contain a webhook payload with the commit information. Without that, the upstream action fails to publish benchmark information.
This release fixes that problem by using the GITHUB_TOKEN to make a GitHub REST request to retrieve the commit information given the current github.context.ref.
[INCORRECT] Fallback to GitHub REST when commit info is missing
This was not prepared correctly before the release, trying again in -alpha2
Add custombenchmark to the config
Needed to add it to the config.ts otherwise it won't accept it as a valid type of "benchmark" to graph.
Release with the built typescript files
Needed to build the .ts files using the prepare-release.sh script
Testing the release of custom benchmarks
A simple test to see if custom benchmarks work, not meant to replace the amazing original action by rhysd.