From ddad14a96de929c774dceab8b875879607c746a5 Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Fri, 7 Mar 2025 11:14:17 +0100 Subject: [PATCH] ci: Fix attempt 2 issue with icon preview comments --- .github/workflows/comment-icon-preview.yml | 7 ++++--- .github/workflows/pull-request-icon-preview.yml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/comment-icon-preview.yml b/.github/workflows/comment-icon-preview.yml index 2c0c6806e..792b6b242 100644 --- a/.github/workflows/comment-icon-preview.yml +++ b/.github/workflows/comment-icon-preview.yml @@ -39,10 +39,11 @@ jobs: } fs.writeFileSync(path.join(temp, 'pr_number.zip'), Buffer.from(download.data)); - - run: unzip pr.zip + - name: 'Unzip artifact' + run: unzip pr_number.zip -d "${{ runner.temp }}/artifacts" - name: 'Get PR number' - run: cat pr/NR + run: cat "${{ runner.temp }}/artifacts/pr_number" id: pr-number - name: Find Comment @@ -58,5 +59,5 @@ jobs: with: comment-id: ${{ steps.pr-comment.outputs.comment-id }} issue-number: ${{ steps.pr-number.outputs.stdout }} - body-path: ./pr/comment-markup.md + body-path: ${{ runner.temp }}/artifacts/pr_number/comment-markup.md edit-mode: replace diff --git a/.github/workflows/pull-request-icon-preview.yml b/.github/workflows/pull-request-icon-preview.yml index 8370dcb79..5a56b5a2a 100644 --- a/.github/workflows/pull-request-icon-preview.yml +++ b/.github/workflows/pull-request-icon-preview.yml @@ -39,5 +39,5 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: pr + name: pr_number path: pr/