Skip to content

Commit

Permalink
Fix documentation workflow
Browse files Browse the repository at this point in the history
Change documentation workflow to checkout pull request head sha
  • Loading branch information
hugary1995 committed Dec 5, 2024
1 parent e118f23 commit 4b342de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ jobs:
steps:
# Setup
- uses: actions/checkout@v4
if: github.event_name == 'push'
with:
submodules: recursive
- uses: actions/checkout@v4
if: github.event_name == 'pull_request_target'
with:
ref: ${{ github.sha }}
ref: ${{ github.event.pull_request.head.sha }}
submodules: recursive
- uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 4b342de

Please sign in to comment.