Browse Source

ci(uffizzi-preview): provide GitHub token to download artifacts (#10005)

GitHub token is required to download artifacts from another workflow
run.

Reference: https://github.com/actions/download-artifact/issues/320
Fixes: 62e1485143 ("ci(uffizzi-preview): use id of the workflow that triggered the workflow run (#10003)")
Fixes: 2684cedddf ("chore(release-pr): update `upload-artifact` action to v4 (#9859)")

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
pull/10006/head
Eng Zer Jun 2 days ago committed by GitHub
parent
commit
34c3bf6713
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      .github/workflows/uffizzi-preview.yml

4
.github/workflows/uffizzi-preview.yml

@ -19,12 +19,14 @@ jobs:
action: ${{ steps.event.outputs.ACTION }}
steps:
- name: 'Download artifacts'
# Fetch output (zip archive) from the workflow run that triggered this workflow.
# Download artifacts from the workflow run that triggered this workflow.
# Token is required to download from a different workflow run.
uses: actions/download-artifact@v4
with:
path: preview-spec
pattern: preview-spec-*
merge-multiple: true
github-token: ${{ github.token }}
run-id: ${{ github.event.workflow_run.id }}
- name: 'Accept event from first stage'

Loading…
Cancel
Save