diff options
Diffstat (limited to '.github/workflows/benchmark-comment.yml')
| -rw-r--r-- | .github/workflows/benchmark-comment.yml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/benchmark-comment.yml b/.github/workflows/benchmark-comment.yml index c095162e..7f67f0f3 100644 --- a/.github/workflows/benchmark-comment.yml +++ b/.github/workflows/benchmark-comment.yml @@ -43,11 +43,13 @@ jobs: id: pr run: echo "number=$(cat pr-number.txt)" >> "$GITHUB_OUTPUT" - - name: Fetch baseline from benchmark-data branch + - name: Fetch baseline from benchmark-data release run: | - git fetch origin benchmark-data 2>/dev/null || true - git show origin/benchmark-data:benchmark-history.json > baseline.json 2>/dev/null \ + gh release download benchmark-data --asset benchmark-history.json \ + --output baseline.json 2>/dev/null \ || echo "[]" > baseline.json + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Generate comparison comment run: | |
