Skip to content

Commit

Permalink
github: use the git checkout action to fetch all refs
Browse files Browse the repository at this point in the history
Drop the separate step for fetching gh-pages branch.

Also update the checkout action to the latest version.
  • Loading branch information
marquiz committed Sep 19, 2023
1 parent 3e09cc0 commit c162983
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
update-gh-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Turnstyle
uses: softprops/turnstyle@v1
Expand All @@ -22,9 +24,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Fetch gh-pages
run: git fetch --no-tags --prune --depth=1 origin refs/heads/gh-pages:refs/heads/gh-pages

- name: Install build dependencies
run: |
pip3 install --user -r docs/requirements.txt
Expand Down

0 comments on commit c162983

Please sign in to comment.