Skip to content

Commit

Permalink
Use dawidd6/action-download-artifact@v2 (with run_id) instead of gh CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrisel committed Oct 30, 2023
1 parent 1fe4a1d commit 08f5b1c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/jupyter-book-pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08f5b1c

Please sign in to comment.