@@ -2,18 +2,13 @@ name: Analyze Bundle (Comment)
22
33on :
44 workflow_run :
5- workflows : [' Analyze Bundle' ]
5+ workflows : [" Analyze Bundle" ]
66 types :
77 - completed
88
9- permissions : {}
10-
119jobs :
1210 comment :
1311 runs-on : ubuntu-latest
14- if : >
15- ${{ github.event.workflow_run.event == 'pull_request' &&
16- github.event.workflow_run.conclusion == 'success' }}
1712 steps :
1813 - name : Download Event Type
1914 uses : dawidd6/action-download-artifact@v3
@@ -30,15 +25,17 @@ jobs:
3025 echo "event-type=$event_type" >> $GITHUB_OUTPUT
3126
3227 - name : Download base branch bundle stats
33- uses : dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
28+ if : github.event.workflow_run.conclusion == 'success' && steps.get-type.outputs.event-type == 'pull_request'
29+ uses : dawidd6/action-download-artifact@v3
3430 with :
3531 workflow : analyze.yml
3632 run_id : ${{ github.event.workflow_run.id }}
3733 name : analysis_comment.txt
3834 path : analysis_comment.txt
3935
4036 - name : Download PR number
41- uses : dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
37+ if : github.event.workflow_run.conclusion == 'success' && steps.get-type.outputs.event-type == 'pull_request'
38+ uses : dawidd6/action-download-artifact@v3
4239 with :
4340 workflow : analyze.yml
4441 run_id : ${{ github.event.workflow_run.id }}
6461 echo "pr-number=$pr_number" >> $GITHUB_OUTPUT
6562
6663 - name : Comment
67- uses : marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728
64+ uses : marocchino/sticky-pull-request-comment@v2
6865 with :
6966 header : next-bundle-analysis
7067 number : ${{ steps.get-comment-body.outputs.pr-number }}
0 commit comments