Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit fe65d02

Browse files
noopsethfalumpaset
andauthored
fix: fix jq error (#218)
Co-authored-by: falumpaset <[email protected]>
1 parent 39b8786 commit fe65d02

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release_pr.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,17 @@ jobs:
4343
PR_LABELS: ${{ steps.pr_labels.outputs.PR_LABELS }}
4444
run: |
4545
# Check if either "type:feature" or "type:fix" label exists in the list
46-
if echo "$PR_LABELS" | jq -e '.[] | select(. == "type:feature" or . == "type:fix")' > /dev/null; then
46+
if echo "$PR_LABELS" | jq -e '.[] | select(. == "type:breaking" or . == "type:feature" or . == "type:fix")' > /dev/null; then
4747
# Determine the tag based on the label found
48-
VERSION_BUMP=$(echo "$PR_LABELS" |jq -r 'if any(.[]; . == "type:breaking") then "version:major" elif jq -r 'if any(.[]; . == "type:feature") then "version:minor" elif any(.[]; . == "type:chore") or any(.[]; . == "type:fix") then "version:patch" else empty end')
49-
48+
VERSION_BUMP=$(echo "$PR_LABELS" | jq -r 'if any(.[]; . == "type:breaking") then "version:major" elif any(.[]; . == "type:feature") then "version:minor" elif any(.[]; . == "type:chore") or any(.[]; . == "type:fix") then "version:patch" else empty end')
49+
5050
# Output the Version Tag
5151
echo "VERSION_BUMP=$VERSION_BUMP" >> "$GITHUB_OUTPUT"
5252
else
5353
echo "No 'type:breaking', 'type:feature' or 'type:fix' label found."
5454
echo "No Version Bump"
5555
fi
56+
5657
5758
- name: Check for open PR to Release Branch
5859
id: check_pr

0 commit comments

Comments
 (0)