|
@@ -21,6 +21,11 @@ jobs:
|
|
if: github.event.workflow_run.event == 'pull_request' &&
|
|
if: github.event.workflow_run.event == 'pull_request' &&
|
|
github.event.workflow_run.conclusion == 'success'
|
|
github.event.workflow_run.conclusion == 'success'
|
|
steps:
|
|
steps:
|
|
|
|
+ - name: Log GitHub context
|
|
|
|
+ env:
|
|
|
|
+ GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
+ run: echo "$GITHUB_CONTEXT"
|
|
|
|
+
|
|
# Using actions/download-artifact doesn't work here
|
|
# Using actions/download-artifact doesn't work here
|
|
# https://github.com/actions/download-artifact/issues/60
|
|
# https://github.com/actions/download-artifact/issues/60
|
|
- name: Download artifact
|
|
- name: Download artifact
|
|
@@ -101,13 +106,13 @@ jobs:
|
|
uses: peter-evans/find-comment@v2
|
|
uses: peter-evans/find-comment@v2
|
|
id: find-comment
|
|
id: find-comment
|
|
with:
|
|
with:
|
|
- issue-number: ${{ github.event.workflow_run.pull_requests[0].number }}
|
|
|
|
|
|
+ issue-number: ${{ fromJSON(steps.download-artifact.outputs.result).pr }}
|
|
comment-author: 'github-actions[bot]'
|
|
comment-author: 'github-actions[bot]'
|
|
body-includes: Bundle size
|
|
body-includes: Bundle size
|
|
- name: Comment on PR
|
|
- name: Comment on PR
|
|
uses: peter-evans/create-or-update-comment@v2
|
|
uses: peter-evans/create-or-update-comment@v2
|
|
with:
|
|
with:
|
|
- issue-number: ${{ github.event.workflow_run.pull_requests[0].number }}
|
|
|
|
|
|
+ issue-number: ${{ fromJSON(steps.download-artifact.outputs.result).pr }}
|
|
comment-id: ${{ steps.find-comment.outputs.comment-id }}
|
|
comment-id: ${{ steps.find-comment.outputs.comment-id }}
|
|
edit-mode: replace
|
|
edit-mode: replace
|
|
body: |
|
|
body: |
|