Skip to content

Commit

Permalink
ci: add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jodli committed Dec 15, 2024
1 parent d17555d commit a64046c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ jobs:
- name: Determine next version
id: determine_version
run: |
NEW_VERSION=$(conventional-changelog -p angular --dry-run | grep "New version:" | awk '{print $3}')
echo "Running conventional-changelog..."
CONVENTIONAL_CHANGELOG_OUTPUT=$(conventional-changelog -p angular --dry-run --debug)
echo "Conventional Changelog Output:"
echo "$CONVENTIONAL_CHANGELOG_OUTPUT"
NEW_VERSION=$(echo "$CONVENTIONAL_CHANGELOG_OUTPUT" | grep "New version:" | awk '{print $3}')
echo "New Version: $NEW_VERSION"
if [[ -z "$NEW_VERSION" ]]; then
echo "::warning::No version bump detected, exiting workflow."
exit 1
Expand Down

0 comments on commit a64046c

Please sign in to comment.