This repository was archived by the owner on Nov 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments