From 2f50d25aaa307a39eb87c85f51433601553911bb Mon Sep 17 00:00:00 2001 From: Esben Sparre Andreasen Date: Tue, 12 Nov 2024 12:23:15 +0100 Subject: [PATCH] feat(actions/qhelp-preview): unique artifact names --- .github/workflows/post-pr-comment.yml | 7 +++++-- .github/workflows/qhelp-pr-preview.yml | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/post-pr-comment.yml b/.github/workflows/post-pr-comment.yml index 7a86909371f8..1c6798bfe80b 100644 --- a/.github/workflows/post-pr-comment.yml +++ b/.github/workflows/post-pr-comment.yml @@ -17,8 +17,11 @@ jobs: post_comment: runs-on: ubuntu-latest steps: - - name: Download artifact - run: gh run download "${WORKFLOW_RUN_ID}" --repo "${GITHUB_REPOSITORY}" --name "comment" + - name: Download artifacts + run: | + gh run download "${WORKFLOW_RUN_ID}" --repo "${GITHUB_REPOSITORY}" --name "comment-pr-number" + gh run download "${WORKFLOW_RUN_ID}" --repo "${GITHUB_REPOSITORY}" --name "comment-body" + gh run download "${WORKFLOW_RUN_ID}" --repo "${GITHUB_REPOSITORY}" --name "comment-id" env: GITHUB_TOKEN: ${{ github.token }} WORKFLOW_RUN_ID: ${{ github.event.workflow_run.id }} diff --git a/.github/workflows/qhelp-pr-preview.yml b/.github/workflows/qhelp-pr-preview.yml index d4a10b8f5a4e..be5a42096bba 100644 --- a/.github/workflows/qhelp-pr-preview.yml +++ b/.github/workflows/qhelp-pr-preview.yml @@ -38,7 +38,7 @@ jobs: PR_NUMBER: ${{ github.event.number }} - uses: actions/upload-artifact@v4 with: - name: comment + name: comment-pr-number path: pr_number.txt if-no-files-found: error retention-days: 1 @@ -80,7 +80,7 @@ jobs: - if: ${{ !cancelled() }} uses: actions/upload-artifact@v4 with: - name: comment + name: comment-body path: comment_body.txt if-no-files-found: error retention-days: 1 @@ -96,7 +96,7 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: comment + name: comment-id path: comment_id.txt if-no-files-found: error retention-days: 1