Skip to content

Commit adada27

Browse files
authored
chore(ci): better versioning script (#45)
1 parent e9bdf78 commit adada27

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/label-version-bump.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,17 @@ jobs:
5454
BUMP_TYPE: ${{ steps.bump-type.outputs.bump-type }}
5555
id: version-update
5656
run: |
57-
OUTPUT=$($GITHUB_WORKSPACE/scripts/version-packages.sh | tr -d '\n' | tr -d '\r')
58-
echo " --- DEBUG ZONE ---"
59-
echo "$OUTPUT"
60-
# Debug JSON format before parsing
61-
echo "$OUTPUT" | jq .
62-
echo " --- DEBUG ZONE ENDS ---"
63-
echo "OLD_VERSION=$(echo "$OUTPUT" | jq -r '.old_version')" >> "$GITHUB_ENV"
64-
echo "NEW_VERSION=$(echo "$OUTPUT" | jq -r '.new_version')" >> "$GITHUB_ENV"
57+
OUTPUT=$($GITHUB_WORKSPACE/scripts/version-packages.sh | tail -n1)
58+
# echo " --- DEBUG ZONE ---"
59+
# echo "just the output"
60+
# echo "$OUTPUT"
61+
# echo "now xxd it"
62+
# echo -n "$OUTPUT" | xxd
63+
# # Debug JSON format before parsing
64+
# echo -n "$OUTPUT" | jq .
65+
# echo " --- DEBUG ZONE ENDS ---"
66+
echo "OLD_VERSION=$(echo -n "$OUTPUT" | jq -r '.old_version')" >> "$GITHUB_ENV"
67+
echo "NEW_VERSION=$(echo -n "$OUTPUT" | jq -r '.new_version')" >> "$GITHUB_ENV"
6568

6669

6770
- name: Update CHANGELOG.md

0 commit comments

Comments
 (0)