44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
name: update-benchmark-data-action
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 * * * *'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
update-benchmark-data-job:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
working-directory: pages
|
|
steps:
|
|
- name: actions-checkout
|
|
uses: actions/checkout@v3
|
|
- name: actions-setup-node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: npm
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
- name: npm-install
|
|
run: npm install
|
|
- name: node-run
|
|
env:
|
|
PAPERTRAIL: ${{ secrets.PAPERTRAIL }}
|
|
GHTOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: node ./benchmark-download.js
|
|
- name: git-commit
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
commit_message: 'update benchmark data'
|
|
commit_options: '--no-verify'
|
|
file_pattern: 'pages/*.json, pages/*.md'
|
|
status_options: '--untracked-files=no'
|
|
skip_fetch: true
|
|
skip_checkout: true
|