Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): better versioning script #45

Merged
merged 8 commits into from
Jan 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/label-version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,17 @@ jobs:
BUMP_TYPE: ${{ steps.bump-type.outputs.bump-type }}
id: version-update
run: |
OUTPUT=$($GITHUB_WORKSPACE/scripts/version-packages.sh | tr -d '\n' | tr -d '\r')
echo " --- DEBUG ZONE ---"
echo "$OUTPUT"
# Debug JSON format before parsing
echo "$OUTPUT" | jq .
echo " --- DEBUG ZONE ENDS ---"
echo "OLD_VERSION=$(echo "$OUTPUT" | jq -r '.old_version')" >> "$GITHUB_ENV"
echo "NEW_VERSION=$(echo "$OUTPUT" | jq -r '.new_version')" >> "$GITHUB_ENV"
OUTPUT=$($GITHUB_WORKSPACE/scripts/version-packages.sh | tail -n1)
# echo " --- DEBUG ZONE ---"
# echo "just the output"
# echo "$OUTPUT"
# echo "now xxd it"
# echo -n "$OUTPUT" | xxd
# # Debug JSON format before parsing
# echo -n "$OUTPUT" | jq .
# echo " --- DEBUG ZONE ENDS ---"
echo "OLD_VERSION=$(echo -n "$OUTPUT" | jq -r '.old_version')" >> "$GITHUB_ENV"
echo "NEW_VERSION=$(echo -n "$OUTPUT" | jq -r '.new_version')" >> "$GITHUB_ENV"


- name: Update CHANGELOG.md
Expand Down
Loading