Skip to content

Commit

Permalink
Fix CI (#10)
Browse files Browse the repository at this point in the history
* fix release workflow attempt 1

* fix release workflow attempt 2
  • Loading branch information
vamsii777 authored Nov 28, 2024
1 parent 7283016 commit 928b18a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ jobs:
fi
# Determine version bump type from PR labels
labels="${{ toJSON(github.event.pull_request.labels.*.name) }}"
if echo "$labels" | jq -e 'contains(["major"])' > /dev/null; then
labels=$(echo '${{ toJSON(github.event.pull_request.labels.*.name) }}')
if echo "$labels" | jq -e 'any(. == "major")' > /dev/null; then
major=$((major + 1))
minor=0
patch=0
elif echo "$labels" | jq -e 'contains(["minor"])' > /dev/null; then
elif echo "$labels" | jq -e 'any(. == "minor")' > /dev/null; then
minor=$((minor + 1))
patch=0
else
Expand Down

0 comments on commit 928b18a

Please sign in to comment.