Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

fix branch

thomashebrard522eebf23492
diff --git a/.github/workflows/changelog-check.yml b/.github/workflows/changelog-check.yml
index c0a87c06e..a445d0cbf 100644
--- a/.github/workflows/changelog-check.yml
+++ b/.github/workflows/changelog-check.yml
@@ -9,27 +9,30 @@ on:
jobs:
check-changelog:
runs-on: ubuntu-latest
+ if: startsWith(github.head_ref, 'release/v') # Only run on release branches
steps:
- uses: actions/checkout@v4
- name: Check Changelog Version
run: |
- # Get the current branch name
+ # Get the current branch name and extract version
BRANCH_NAME=${GITHUB_HEAD_REF}
- # Check if this is a release branch
if [[ $BRANCH_NAME =~ ^release/v([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
VERSION="${BASH_REMATCH[1]}"
- echo "Release branch detected for version v$VERSION"
+ echo "Checking release branch v$VERSION against changelog..."
# Look for the version in the changelog
if ! grep -q "## \[v$VERSION\] -" CHANGELOG.md; then
- echo "Error: No changelog entry found for version v$VERSION"
- echo "Please add a changelog entry for v$VERSION before merging this release"
+ echo "❌ Error: No changelog entry found for version v$VERSION"
+ echo "The following versions are in the changelog:"
+ grep -E "^## \[v[0-9]+\.[0-9]+\.[0-9]+\]" CHANGELOG.md
+ echo "Please add a changelog entry for v$VERSION before merging this release to main"
exit 1
else
echo "✅ Changelog entry found for version v$VERSION"
fi
else
- echo "Not a release branch, skipping changelog check"
+ echo "❌ Error: Branch name $BRANCH_NAME does not match expected format 'release/vX.Y.Z'"
+ exit 1
fi
\ No newline at end of file