diff --git a/.github/workflows/code-size-report.yml b/.github/workflows/code-size-report.yml index dd1c1d5..e1aa160 100644 --- a/.github/workflows/code-size-report.yml +++ b/.github/workflows/code-size-report.yml @@ -14,7 +14,7 @@ jobs: - name: '↓ Download code size report' uses: actions/download-artifact@v4 with: - pattern: "code-size-report.md" + name: "code-size-report.md" path: ${GITHUB_WORKSPACE} run-id: ${{ github.event.workflow_run.id }} github-token: ${{ github.token }} @@ -22,8 +22,8 @@ jobs: - name: '📝 Check report' run: | ls -1 -R - CODE_SIZE_REPORT=${GITHUB_WORKSPACE}/code_size_report.md - cat ${CODE_SIZE_REPORT} + CODE_SIZE_REPORT=code-size-report.md + cat ${GITHUB_WORKSPACE}/${CODE_SIZE_REPORT} PR_NUMBER=$(jq -r '.workflow_run.pull_requests[0].number' < "$GITHUB_EVENT_PATH") echo "Pull Request Number: $PR_NUMBER" @@ -38,4 +38,4 @@ jobs: uses: thollander/actions-comment-pull-request@v2 with: pr_number: ${{ steps.generate_report.outputs.pr_number }} - filePath: ${{ steps.generate_report.outputs.code_size_report }} + filePath: ${{ github.workspace }}/${{ steps.generate_report.outputs.code_size_report }}