cozystack/.github
Myasnikov Daniil e7e83b0d0b
fix(ci): reject empty changelog file before commit
Review feedback on PR #2460: the existing `[ -f ]` check catches
missing files but a zero-byte `docs/changelogs/v${VERSION}.md` would
still be staged and committed — `git add` + `git commit -s` on a new
empty file succeeds and produces a real commit, leaving the
downstream PR with no actual changelog content.

Add a `[ -s ]` guard after the existence check: if the Generate
changelog using AI step produces an empty file, emit a matching
`::error::` annotation and exit 1 before snapshotting.

Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-04-23 12:25:30 +05:00
..
ISSUE_TEMPLATE Update .github/ISSUE_TEMPLATE/bug_report.md 2025-10-08 17:30:56 +03:00
workflows fix(ci): reject empty changelog file before commit 2026-04-23 12:25:30 +05:00
CODEOWNERS chore(maintenance): add @myasnikovdaniil to CODEOWNERS 2026-04-21 14:31:07 +05:00
PULL_REQUEST_TEMPLATE.md docs(ci): require screenshots for UI changes in PR template 2026-04-16 00:34:52 +03:00