Skip to content

Motion Benchmark Comment on PR #1978

Motion Benchmark Comment on PR

Motion Benchmark Comment on PR #1978

name: 'Motion Benchmark Comment on PR'
on:
workflow_run:
workflows: ["Motion Pull Request Update"]
types: [ completed ]
jobs:
motion_comment:
name: 'Post Comment on PR'
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'pull_request_target' && github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Download Motion Benchmarks
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
name: pr-motion-benchmark
- name: Restore Environment
run: cat pr.env >> "${GITHUB_ENV}"
- name: Add Motion Benchmarks Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
header: motion-benchmark
number: ${{ env.PR_NUMBER }}
recreate: true
path: motion-testing/results/motion-benchmarks.md