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.

Signed-off-by: Markus Lehtonen <[email protected]>
  • Loading branch information
marquiz committed Sep 19, 2023
1 parent 42c41b2 commit d7f13c9
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 @@ -15,10 +15,9 @@ jobs:
update-gh-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Fetch gh-pages
run: git fetch --no-tags --prune --depth=1 origin refs/heads/gh-pages:refs/heads/gh-pages
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install build dependencies
run: |
Expand Down

0 comments on commit d7f13c9

Please sign in to comment.