Skip to content

Commit

Permalink
CI: Fix detected version on doc builds
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dopplershift committed Jan 24, 2022
1 parent df6f7c5 commit 2d98bc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d98bc0

Please sign in to comment.