From d7f13c97ba0418ae8f644e31d80a6fddac3a0f58 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 19 Sep 2023 11:33:30 +0300 Subject: [PATCH] github: use the git checkout action to fetch all refs Drop the separate step for fetching gh-pages branch. Also update the checkout action to the latest version. Signed-off-by: Markus Lehtonen --- .github/workflows/publish-docs.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 3b936f9f8..33cba1a5d 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -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: |