fix: trying again to fix the pipeline

This commit is contained in:
2024-10-29 15:46:52 +01:00
parent 867abd7054
commit eb895398ab

View File

@@ -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