Motion Benchmark Comment on PR #1942
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
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: dawidd6/action-download-artifact@v2 | |
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 |