From 2811d1a756406c53bb29a5dbb7c929d650c69b5f Mon Sep 17 00:00:00 2001 From: Peter Date: Sun, 6 Feb 2022 09:52:49 +0100 Subject: [PATCH] [GH-Actions][pages] Add fetch-depth and allow workflow run manually --- .github/workflows/gh-pages.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index a2834da75..8509b99e3 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -3,6 +3,8 @@ on: push: branches: - master + workflow_dispatch: # Allow to run workflow manually + jobs: build-and-deploy: runs-on: ubuntu-latest @@ -11,6 +13,7 @@ jobs: uses: actions/checkout@v2.4.0 with: token: '${{ secrets.GHPAGES_ACTION_CHECKOUT_TOKEN_PAT }}' + fetch-depth: '0' # https://github.com/timvink/mkdocs-git-revision-date-localized-plugin#note-when-using-build-environments - name: Install dependencies 🐄 run: |