Skip to content
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
31 changes: 31 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,37 @@ jobs:
- uses: ./.github/actions/setup
- run: mise run ci-check

version-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
- uses: ./.github/actions/setup
- name: Preview next version and changelog
run: |
LEVEL=$(convco version --bump --label)
NEXT=$(convco version --bump)

{
echo "## Version Preview"
echo ""

if [ "$LEVEL" = "release" ]; then
echo "No version bump needed (no changes since last release)."
else
echo "**Bump level:** \`${LEVEL}\`"
echo ""
echo "**Next version:** \`${NEXT}\`"
echo ""
echo "### Changelog"
echo '```'
convco changelog --unreleased || true
echo '```'
fi
} >> "$GITHUB_STEP_SUMMARY"

build:
uses: ./.github/workflows/_build.yml
with:
Expand Down
Loading