@@ -126,15 +126,13 @@ jobs:
126126 # Download previous release report, compare the release binary sizes, and post/update a comment at the Pull Request.
127127 - name : Download previous release report
128128 if : github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
129- uses : dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 # v6
130- with :
131- commit : ${{github.event.pull_request.base.sha}}
132- path : previous
133- if_no_artifact_found : warn
129+ run : ./tools/gh-download-workflow-artifact
130+ env :
131+ COMMIT : ${{github.event.pull_request.base.sha}}
132+ DOWNLOAD_PATH : previous
134133 # Same artifact name as at the "Upload release report" step.
135- name : release_report
136- # Ignore status or conclusion in the search.
137- workflow_conclusion : " "
134+ ARTIFACT_NAME : release_report
135+ GH_TOKEN : ${{ github.token }}
138136
139137 - name : Craft Comment Body
140138 if : github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
@@ -144,13 +142,11 @@ jobs:
144142
145143 - name : Create or Update Comment
146144 if : github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
147- uses : edumserrano/find-create-or-update-comment@3d340543af6d2743c70ab2d525deeb0f12e290de # v2 .0.0
145+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 .0.0
148146 with :
149- issue-number : ${{ github.event.pull_request.number }}
150- body-includes : " Binary size comparison"
151- comment-author : ' github-actions[bot]'
152- edit-mode : replace
153- body-path : ' report-diff.md'
147+ script : |
148+ const script = require('./tools/gh-create-or-update-comment.js');
149+ await script({github, context, bodyPath: 'report-diff.md', bodyIncludes: 'Binary size comparison'});
154150
155151 memory-profiler :
156152 runs-on : ubuntu-24.04
0 commit comments