Skip to content

Commit 19845a5

Browse files
committed
feat(actions/qhelp-preview): unique artifact names
1 parent eae6cd3 commit 19845a5

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/post-pr-comment.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ jobs:
1717
post_comment:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- name: Download artifact
21-
run: gh run download "${WORKFLOW_RUN_ID}" --repo "${GITHUB_REPOSITORY}" --name "comment"
20+
- name: Download artifacts
21+
run: |
22+
gh run download "${WORKFLOW_RUN_ID}" --repo "${GITHUB_REPOSITORY}" --name "comment-pr-number"
23+
gh run download "${WORKFLOW_RUN_ID}" --repo "${GITHUB_REPOSITORY}" --name "comment-body"
24+
gh run download "${WORKFLOW_RUN_ID}" --repo "${GITHUB_REPOSITORY}" --name "comment-id"
2225
env:
2326
GITHUB_TOKEN: ${{ github.token }}
2427
WORKFLOW_RUN_ID: ${{ github.event.workflow_run.id }}

.github/workflows/qhelp-pr-preview.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
PR_NUMBER: ${{ github.event.number }}
3939
- uses: actions/upload-artifact@v4
4040
with:
41-
name: comment
41+
name: comment-pr-number
4242
path: pr_number.txt
4343
if-no-files-found: error
4444
retention-days: 1
@@ -80,7 +80,7 @@ jobs:
8080
- if: ${{ !cancelled() }}
8181
uses: actions/upload-artifact@v4
8282
with:
83-
name: comment
83+
name: comment-body
8484
path: comment_body.txt
8585
if-no-files-found: error
8686
retention-days: 1
@@ -96,7 +96,7 @@ jobs:
9696

9797
- uses: actions/upload-artifact@v4
9898
with:
99-
name: comment
99+
name: comment-id
100100
path: comment_id.txt
101101
if-no-files-found: error
102102
retention-days: 1

0 commit comments

Comments
 (0)