Skip to content

Commit 080f842

Browse files
committed
Use official GitHub action for preview download
1 parent c041f07 commit 080f842

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/preview.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ jobs:
1515
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
1616
steps:
1717
- name: Download PR Artifact
18-
uses: dawidd6/action-download-artifact@v6
18+
uses: actions/download-artifact@v4
1919
with:
20-
workflow: ${{ github.event.workflow_run.workflow_id }}
21-
run_id: ${{ github.event.workflow_run.id }}
22-
workflow_conclusion: success
20+
github-token: ${{ secrets.GITHUB_TOKEN }} # token with actions:read permissions on target repo
21+
run-id: ${{ github.event.workflow_run.id }}
2322
name: site
2423
- name: Store PR id as variable
2524
id: pr

0 commit comments

Comments
 (0)