From 14367e3b8afd856e1fc522419aa226408402a9ad Mon Sep 17 00:00:00 2001 From: David Linke Date: Sun, 3 Sep 2023 02:02:51 +0200 Subject: [PATCH] Change to fetch-depth 0 to get all tags --- .github/workflows/merge.yml | 4 +++- .github/workflows/publish.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 3e739f6..a6e6b67 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -32,13 +32,15 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v3 + with: + # Using fetch-depth 0 is the only way to get all tags which are needed for building docs. + fetch-depth: 0 - name: Checkout gh-pages branch to dir publish/ uses: actions/checkout@v3 with: ref: gh-pages path: publish - fetch-depth: 1 - uses: actions/setup-python@v4 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c07c7a3..df5f021 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,13 +32,15 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v3 + with: + # Using fetch-depth 0 is the only way to get all tags which are needed for building docs. + fetch-depth: 0 - name: Checkout gh-pages branch to dir publish/ uses: actions/checkout@v3 with: ref: gh-pages path: publish - fetch-depth: 1 - uses: actions/setup-python@v4 with: