From 3f2d953473d4d7ff3a5a3b8a87e442cfb5eb9228 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Wed, 16 Feb 2022 08:13:32 -0800 Subject: [PATCH] chore(CI): Revert 8a72928ad1451a8a76151a1a070fb35c022aa53b "chore(travis): don't fail generating docs when there's no git version" No longer a concern on GH actions which allows deep clones. --- .github/workflows/build-test-deploy.yaml | 2 ++ .travis/build-docs.sh | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test-deploy.yaml b/.github/workflows/build-test-deploy.yaml index a612ce6a4..734e180e7 100644 --- a/.github/workflows/build-test-deploy.yaml +++ b/.github/workflows/build-test-deploy.yaml @@ -506,6 +506,8 @@ jobs: DOXYGEN_CONFIG_FILE: doxygen.conf steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Run run: ./.travis/build-docs.sh build-gitstats: diff --git a/.travis/build-docs.sh b/.travis/build-docs.sh index 40f6af15d..727f71cbf 100755 --- a/.travis/build-docs.sh +++ b/.travis/build-docs.sh @@ -23,8 +23,7 @@ set -eu -o pipefail sudo apt-get update -qq sudo apt-get install doxygen graphviz -# can fail due to travis cloning only `depth=50` -GIT_DESC=$(git describe --tags 2>/dev/null || echo HEAD) +GIT_DESC=$(git describe --tags 2>/dev/null) GIT_CHASH=$(git rev-parse HEAD) # Append git version to doxygen version string