Wrapper over diffcalc-sheet-generator to generate spreadsheets using a self-hosted GitHub Actions runner.
Self-hosted runner with installed:
docker >= 20.10.16
docker-compose >= 2.5.1
lbzip2
jq
The workflow can be run in two ways:
- Via workflow dispatch.
- By an owner of the repository posting a pull request or issue comment containing
!diffcalc
.
For pull requests, the workflow will assume the pull request as the target to compare against (i.e. theOSU_B
variable).
Any lines in the comment of the formKEY=VALUE
are treated as variables for the generator.
Spreadsheets are uploaded to a Google Service Account, and exposed with read-only permissions to the wider audience.
- Create a project at https://console.cloud.google.com
- Enable the
Google Sheets
andGoogle Drive
APIs. - Create a Service Account
- Generate a key in the JSON format.
- Encode the key as base64 and store as an actions secret with name
DIFFCALC_GOOGLE_CREDENTIALS
The default environment may be configured via actions variables.
Refer to the sample environment, and prefix each variable with DIFFCALC_
(e.g. DIFFCALC_THREADS
, DIFFCALC_INNODB_BUFFER_SIZE
, etc...).