forked from netlify/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 981 Bytes
/
benchmark-post.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Post package size
on:
workflow_run:
workflows: [Calculate package size]
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@v2
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'
pr_number: ${{ steps.pr_number.outputs.pr_number }}