ci: `docs-preview-deploy.yml` - Switch to official `download-artifact` action (#3838)

v4 of the official action now supports this use-case.
This commit is contained in:
Brennan Kinney 2024-01-28 01:50:01 +13:00 committed by GitHub
parent 9ac11021e1
commit a8ccd54da5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 4 deletions

View File

@ -23,14 +23,13 @@ jobs:
# Restore workflow context #
# ======================== #
# The official Github Action for downloading artifacts does not support multi-workflow
# Retrieve the artifact uploaded from `docs-preview-prepare.yml` workflow run that triggered this deployment
- name: 'Download build artifact'
uses: dawidd6/action-download-artifact@v3
uses: actions/download-artifact@v4
with:
name: preview-build
github_token: ${{ secrets.GITHUB_TOKEN }}
run_id: ${{ github.event.workflow_run.id }}
workflow: docs-preview-prepare.yml
name: preview-build
- name: 'Extract build artifact'
run: tar -xf artifact.tar.zst