Skip to content

Releases: NathanielRN/github-action-benchmark

Replace github payload references with context references

Choose a tag to compare

@NathanielRN NathanielRN released this 15 Sep 17:46

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

Choose a tag to compare

@NathanielRN NathanielRN released this 15 Sep 15:26

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

Choose a tag to compare

@NathanielRN NathanielRN released this 15 Sep 04:59

This was not prepared correctly before the release, trying again in -alpha2

Add custombenchmark to the config

Choose a tag to compare

@NathanielRN NathanielRN released this 16 Aug 16:50

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

Choose a tag to compare

@NathanielRN NathanielRN released this 16 Aug 16:39

Needed to build the .ts files using the prepare-release.sh script

Testing the release of custom benchmarks

Choose a tag to compare

@NathanielRN NathanielRN released this 16 Aug 09:01

A simple test to see if custom benchmarks work, not meant to replace the amazing original action by rhysd.