From e3456eefa6e00f8547832edf1e702ad50622e7f8 Mon Sep 17 00:00:00 2001 From: benjamin Date: Thu, 25 Jul 2024 21:52:53 +0200 Subject: [PATCH] use is_tag in doc pipeline --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07c95398..3603ec32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,9 +88,14 @@ jobs: - id: branch-name uses: tj-actions/branch-names@v7.0.7 - name: Ensure we can checkout gh-pages + if: steps.branch-names.outputs.is_tag == 'true' run: | git checkout gh-pages - git checkout ${{ steps.branch-name.outputs.current_branch }} + git checkout ${{ steps.branch-names.outputs.tag }} + if: steps.branch-names.outputs.is_tag == 'false' + run: | + git checkout gh-pages + git checkout ${{ steps.branch-names.outputs.current_branch }} - name: Setup Python 3.8 uses: actions/setup-python@v2 with: