From 736fccf32c8df61f31e215443c02a1743d78d9eb Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Tue, 9 Nov 2021 13:21:03 -0500 Subject: [PATCH] github-actions/pnl-ci-docs: Force creation of temporary version tag (#2192) Cleanup the tag if the documentation build fails. Signed-off-by: Jan Vesely --- .github/workflows/pnl-ci-docs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pnl-ci-docs.yml b/.github/workflows/pnl-ci-docs.yml index fab0009323f..582043958dd 100644 --- a/.github/workflows/pnl-ci-docs.yml +++ b/.github/workflows/pnl-ci-docs.yml @@ -90,8 +90,8 @@ jobs: - name: Add git tag # The generated docs include PNL version, # set it to a fixed value to prevent polluting the diff - if: ${{ github.event_name == 'pull_request' }} - run: git tag 'v999.999.999.999' + if: github.event_name == 'pull_request' + run: git tag --force 'v999.999.999.999' - name: Build Documentation run: make -C docs/ html -e SPHINXOPTS="-aE -j auto" @@ -99,7 +99,7 @@ jobs: - name: Remove git tag # The generated docs include PNL version, # This was set to a fixed value to prevent polluting the diff - if: ${{ github.event_name == 'pull_request' }} + if: github.event_name == 'pull_request' && always() run: git tag -d 'v999.999.999.999' - name: Upload Documentation