Skip to content

Commit

Permalink
use is_tag in doc pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjiU committed Jul 25, 2024
1 parent 48ef0d0 commit e3456ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,14 @@ jobs:
- id: branch-name
uses: tj-actions/[email protected]
- 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:
Expand Down

0 comments on commit e3456ee

Please sign in to comment.