From eb895398abcdef7106d628e48c7831b9e0209d07 Mon Sep 17 00:00:00 2001 From: Conrad Date: Tue, 29 Oct 2024 15:46:52 +0100 Subject: [PATCH] fix: trying again to fix the pipeline --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1754279..f64c962 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: tag_and_publish: runs-on: ubuntu-latest - if: github.ref == 'master' || github.ref == 'dev' + if: github.ref_name == 'master' || github.ref_name == 'dev' needs: test permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing @@ -55,7 +55,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-tags: true - ref: ${{ github.ref }} + ref: ${{ github.ref_name }} fetch-depth: 0 - name: setup git @@ -66,7 +66,7 @@ jobs: - name: set version format id: version_format run: | - if [[ ${{ github.ref }} == 'master' ]]; then + if [[ ${{ github.ref_name }} == 'master' ]]; then echo "version_format=\${major}.\${minor}.\${patch}" >> $GITHUB_OUTPUT else echo "version_format=\${major}.\${minor}.\${patch}rc\${increment}" >> $GITHUB_OUTPUT