-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update benchmark PR schedule and body
- Loading branch information
Showing
2 changed files
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
name: Benchmark | ||
|
||
on: | ||
push: | ||
branches: [docs/update-benchmark-pr] | ||
schedule: | ||
- cron: '30 5 * * *' | ||
- cron: '30 5 15 * *' | ||
|
||
jobs: | ||
benchmark: | ||
|
@@ -16,6 +18,13 @@ jobs: | |
with: | ||
node-version-file: 'package.json' | ||
cache: 'pnpm' | ||
- uses: actions/[email protected] | ||
id: results | ||
with: | ||
script: | | ||
core.setOutput('results', require('./docs/data.json').benchmark.results); | ||
- run: | | ||
echo "${{ steps.results.outputs.results }}" | ||
- uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: 6.0 | ||
|
@@ -25,18 +34,18 @@ jobs: | |
- run: node -v | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm benchmark | ||
- id: create-pr | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
add-paths: docs/data.json | ||
base: main | ||
body: 'Automated benchmark results generated on ${{ steps.date.outputs.date }}' | ||
branch: docs/benchmark-${{ steps.date.outputs.date }} | ||
commit-message: 'docs: Benchmark results ${{ steps.date.outputs.date }}' | ||
delete-branch: true | ||
reviewers: avaly | ||
title: 'docs: Benchmark results ${{ steps.date.outputs.date }}' | ||
- if: ${{ steps.create-pr.outputs.pull-request-number }} | ||
run: | | ||
echo "Pull Request Number - ${{ steps.create-pr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.create-pr.outputs.pull-request-url }}" | ||
# - id: create-pr | ||
# uses: peter-evans/create-pull-request@v5 | ||
# with: | ||
# add-paths: docs/data.json | ||
# base: main | ||
# body: 'Automated benchmark results generated on ${{ steps.date.outputs.date }}' | ||
# branch: docs/benchmark-${{ steps.date.outputs.date }} | ||
# commit-message: 'docs: Benchmark results ${{ steps.date.outputs.date }}' | ||
# delete-branch: true | ||
# reviewers: avaly | ||
# title: 'docs: Benchmark results ${{ steps.date.outputs.date }}' | ||
# - if: ${{ steps.create-pr.outputs.pull-request-number }} | ||
# run: | | ||
# echo "Pull Request Number - ${{ steps.create-pr.outputs.pull-request-number }}" | ||
# echo "Pull Request URL - ${{ steps.create-pr.outputs.pull-request-url }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters