Skip to content

Commit 787fa63

Browse files
cdeckerclaude
andcommitted
fix: Run kacl-cli from crate directory in release workflow
kacl-cli verify does not accept file path arguments — it reads CHANGELOG.md from the current directory. The workflow was passing the path as an argument, causing a silent failure. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4ae5faf commit 787fa63

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,11 @@ jobs:
205205
fi
206206
207207
echo "Validating $CHANGELOG..."
208-
208+
209209
# Run kacl-cli verify with JSON output for structured error reporting
210210
# The JSON output makes it easier to parse and display errors
211-
if kacl-cli verify --json "$CHANGELOG" > /tmp/kacl-output.json 2>&1; then
211+
# Note: kacl-cli reads CHANGELOG.md from cwd, does not accept file arguments
212+
if (cd "$CRATE_DIR" && kacl-cli verify --json) > /tmp/kacl-output.json 2>&1; then
212213
echo "✅ Changelog format is valid"
213214
else
214215
echo "❌ ERROR: Changelog format validation failed"

0 commit comments

Comments
 (0)