From 2d98bc053e6b532d73d2068145d422da0565d6a3 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Mon, 24 Jan 2022 13:12:48 -0700 Subject: [PATCH] CI: Fix detected version on doc builds Because we modify a requirements file (for each installation), the version was being detected as a dirty version, and thus ended up as a dev build even when built on tag. After install ensure a clean checkout before building the docs. --- .github/workflows/docs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f82b9382471..001abeb54d7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -59,6 +59,10 @@ jobs: type: 'doc' python-version: ${{ matrix.python-version }} + # Needed to have a clean version on tags due to modifying requirements above + - name: Clean modified files + run: git checkout -- . + - name: Build docs id: build-docs uses: ./.github/actions/build-docs