Skip to content

Commit 2bc36f9

Browse files
committed
ci: fix preflight scripts for changelog header and commitlint refname ambiguity
1 parent 2a8371c commit 2bc36f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.agent/workflows/release-preflight.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ SCRIPT_POD_NAME_VER=$(grep "MySQLTuner [0-9.]* - MySQL High Performance" mysqltu
2727
SCRIPT_POD_VER=$(grep "^Version [0-9.]*" mysqltuner.pl | awk '{print $2}')
2828

2929
# 6. Changelog latest version
30-
LOG_VER=$(head -n 1 Changelog | awk '{print $1}')
30+
LOG_VER=$(grep "^[0-9]" Changelog | head -n 1 | awk '{print $1}')
3131
```
3232

3333
## 2. Validate Consistency
@@ -85,7 +85,7 @@ Ensure all commits since the last release follow Conventional Commits.
8585
```bash
8686
LAST_TAG=$(git describe --tags --abbrev=0)
8787
echo "Validating commits since $LAST_TAG..."
88-
npx commitlint --from=$LAST_TAG --to=HEAD
88+
npx commitlint --from="tags/$LAST_TAG" --to=HEAD
8989
```
9090

9191
## 5. Markdown Integrity

0 commit comments

Comments
 (0)