Skip to content

Post benchmarks

Post benchmarks #8373

name: Post benchmarks
on:
workflow_run:
workflows: [Calculate benchmarks]
types:
- completed
jobs:
post-package-size:
runs-on: ubuntu-latest
steps:
# This posts the status to the PR/commit
- uses: haya14busa/action-workflow_run-status@v1
- name: Download deltas
uses: dawidd6/action-download-artifact@v6
with:
# This is the workflow that triggered this run
workflow: ${{ github.event.workflow.id }}
workflow_conclusion: success
name: delta-action-deltas
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Get PR number
if: github.event.workflow_run.event == 'pull_request'
id: pr_number
run: echo "pr_number=$(cat pr_number)" >> $GITHUB_OUTPUT
- name: Post deltas to GitHub
uses: netlify/delta-action@v4
with:
title: '📊 Benchmark results'
style: 'text'
pr_number: ${{ steps.pr_number.outputs.pr_number }}