From 08f5b1c70fa46d2d0dba73598d5d8ea45f7e1d72 Mon Sep 17 00:00:00 2001 From: Olivier Grisel Date: Mon, 30 Oct 2023 10:41:55 +0100 Subject: [PATCH] Use dawidd6/action-download-artifact@v2 (with run_id) instead of gh CLI --- .github/workflows/jupyter-book-pr-preview.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/jupyter-book-pr-preview.yml b/.github/workflows/jupyter-book-pr-preview.yml index 5a4ca191d..b423f4168 100644 --- a/.github/workflows/jupyter-book-pr-preview.yml +++ b/.github/workflows/jupyter-book-pr-preview.yml @@ -19,10 +19,12 @@ jobs: sha: ${{ github.event.workflow_run.head_sha }} context: 'JupyterBook preview' - - name: Download artifacts - run: gh run download --name jupyter-book ${{ github.event.workflow_run.id }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: dawidd6/action-download-artifact@v2 + with: + github_token: ${{secrets.GITHUB_TOKEN}} + workflow: deploy-gh-pages.yml + run_id: ${{ github.event.workflow_run.id }} + name: jupyter-book - name: Get pull request number id: pull-request-number