mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-28 20:17:03 +01:00
ci: Fix icon preview comment attempt 3
This commit is contained in:
13
.github/workflows/comment-icon-preview.yml
vendored
13
.github/workflows/comment-icon-preview.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user