From e0fbbb6f2d707ff771e670babc0e858f4eb251cd Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Fri, 7 Mar 2025 11:56:43 +0100 Subject: [PATCH] ci: Fix icon preview comment attempt 3 --- .github/workflows/comment-icon-preview.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/comment-icon-preview.yml b/.github/workflows/comment-icon-preview.yml index 792b6b242..fbfbbecfd 100644 --- a/.github/workflows/comment-icon-preview.yml +++ b/.github/workflows/comment-icon-preview.yml @@ -32,18 +32,13 @@ jobs: archive_format: 'zip', }); const fs = require('fs'); - const path = require('path'); - const temp = '${{ runner.temp }}/artifacts'; - if (!fs.existsSync(temp)){ - fs.mkdirSync(temp); - } - fs.writeFileSync(path.join(temp, 'pr_number.zip'), Buffer.from(download.data)); + fs.writeFileSync('${{github.workspace}}/pr_number.zip'), Buffer.from(download.data)); - name: 'Unzip artifact' - run: unzip pr_number.zip -d "${{ runner.temp }}/artifacts" + run: unzip pr_number.zip - name: 'Get PR number' - run: cat "${{ runner.temp }}/artifacts/pr_number" + run: cat "pr_number" id: pr-number - name: Find Comment @@ -59,5 +54,5 @@ jobs: with: comment-id: ${{ steps.pr-comment.outputs.comment-id }} issue-number: ${{ steps.pr-number.outputs.stdout }} - body-path: ${{ runner.temp }}/artifacts/pr_number/comment-markup.md + body-path: pr_number/comment-markup.md edit-mode: replace