Skip to content

Commit

Permalink
fix: trying again to fix the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
creyD committed Oct 29, 2024
1 parent 867abd7 commit eb89539
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit eb89539

Please sign in to comment.