Skip to content

Commit 7ca4a65

Browse files
authored
ci: 👷 correct logic to check if release is possible (#277)
# Description I think the `cog check` only checked if the commits were conventional commits, not if a version was possible. This should fix that. Needs no review.
1 parent 855c11f commit 7ca4a65

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ jobs:
6666
continue-on-error: true
6767
id: check_changes
6868
run: |
69-
if cog check --from-latest-tag; then
69+
# Determine if a bump is possible.
70+
if [[ $(cog bump --auto --dry-run) != No* ]]; then
7071
echo "has_changes=true" >> $GITHUB_OUTPUT
7172
else
7273
echo "has_changes=false" >> $GITHUB_OUTPUT
@@ -83,7 +84,8 @@ jobs:
8384
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8485
run: |
8586
version=$(cog get-version)
86-
uvx git-cliff --latest --output RELEASE_NOTES.md --strip all
87+
# Remove logging from git-cliff.
88+
RUST_LOG='none' uvx git-cliff --latest --output RELEASE_NOTES.md --strip all
8789
gh release create "${version}" \
8890
--title "Release ${version}" \
8991
--notes-file RELEASE_NOTES.md

0 commit comments

Comments
 (0)