From be7f33e00373a7a70f830982f049f92248e1c304 Mon Sep 17 00:00:00 2001 From: benjamin Date: Thu, 25 Jul 2024 22:04:59 +0200 Subject: [PATCH] fix workflow file --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27d09a07..6f6b6d8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,14 +85,15 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 - - id: branch-name - uses: tj-actions/branch-names@v7.0.7 - - name: Ensure we can checkout gh-pages for release (tags) + - name: Get branch names + id: branch-names + uses: tj-actions/branch-names@v8 + - name: Ensure we can checkout gh-pages for release (${{ steps.branch-names.outputs.tag }}) 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) + - name: Ensure we can checkout gh-pages for pr (${{ steps.branch-names.outputs.current_branch }}) if: steps.branch-names.outputs.is_tag == 'false' run: | git checkout gh-pages