From f51f3b6d832fbf73fbbb4fe83bdf8ad37d28985d Mon Sep 17 00:00:00 2001 From: benjamin Date: Thu, 25 Jul 2024 21:56:52 +0200 Subject: [PATCH] fix workflow file --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3603ec32..27d09a07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,11 +87,12 @@ jobs: fetch-depth: 0 - id: branch-name uses: tj-actions/branch-names@v7.0.7 - - name: Ensure we can checkout gh-pages + - name: Ensure we can checkout gh-pages for release (tags) if: steps.branch-names.outputs.is_tag == 'true' run: | git checkout gh-pages git checkout ${{ steps.branch-names.outputs.tag }} + - name: Ensure we can checkout gh-pages for pr (branch) if: steps.branch-names.outputs.is_tag == 'false' run: | git checkout gh-pages