Skip to content

Commit

Permalink
Update subsystem-benchmarks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Sep 10, 2024
1 parent d32918a commit dd43261
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/subsystem-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: gh-pages
fetch-depth: 0

- name: Download artifacts
uses: actions/download-artifact@v4.1.8
Expand All @@ -109,16 +110,18 @@ jobs:
app-id: ${{ secrets.POLKADOTSDK_GHPAGES_APP_ID }}
private-key: ${{ secrets.POLKADOTSDK_GHPAGES_APP_KEY }}

# - name: Publish ${{ env.BENCH_NAME }}
# uses: benchmark-action/github-action-benchmark@v1
# env:
# BENCH_NAME: availability-recovery-regression-bench
# with:
# tool: "customSmallerIsBetter"
# name: ${{ env.BENCH_NAME }}
# output-file-path: ./bench/${{ env.BENCH_NAME }}/${{ env.BENCH_NAME }}.json
# benchmark-data-dir-path: ./bench/${{ env.BENCH_NAME }}
# github-token: ${{ steps.app-token.outputs.token }}
- name: Publish ${{ env.BENCH_NAME }}
uses: benchmark-action/github-action-benchmark@v1
env:
BENCH_NAME: availability-recovery-regression-bench
with:
tool: "customSmallerIsBetter"
name: ${{ env.BENCH_NAME }}
output-file-path: ./bench/${{ env.BENCH_NAME }}/${{ env.BENCH_NAME }}.json
benchmark-data-dir-path: ./bench/${{ env.BENCH_NAME }}
github-token: ${{ steps.app-token.outputs.token }}
auto-push: false
skip-fetch-gh-pages: true

# - name: Publish ${{ env.BENCH_NAME }}
# uses: benchmark-action/github-action-benchmark@v1
Expand Down Expand Up @@ -152,3 +155,15 @@ jobs:
output-file-path: ./bench/${{ env.BENCH_NAME }}/${{ env.BENCH_NAME }}.json
benchmark-data-dir-path: ./bench/${{ env.BENCH_NAME }}
github-token: ${{ steps.app-token.outputs.token }}
auto-push: false
skip-fetch-gh-pages: true

- name: Push changes
run: |
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git status
git diff
git add .
git commit -m "Update ${{ env.BENCH_NAME }} benchmarks"
git push

0 comments on commit dd43261

Please sign in to comment.