refactor(t5508): default _draft_enabled to true, only disable when ex… #11546
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Version Validation | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| version-consistency: | |
| name: Version Consistency Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Version Consistency Validation | |
| run: | | |
| echo "🔍 AI DevOps Framework - Version Consistency Validation" | |
| echo "=====================================================" | |
| echo "" | |
| # Make validation script executable | |
| chmod +x .agents/scripts/validate-version-consistency.sh | |
| # Run version validation | |
| if ./.agents/scripts/validate-version-consistency.sh; then | |
| echo "" | |
| echo "✅ Version Validation: PASSED" | |
| echo "All version references are consistent across the framework." | |
| else | |
| echo "" | |
| echo "❌ Version Validation: FAILED" | |
| echo "Version inconsistencies detected. Please fix before merging." | |
| exit 1 | |
| fi | |
| - name: Version Information Summary | |
| run: | | |
| echo "" | |
| echo "📊 Version Information Summary" | |
| echo "==============================" | |
| # Get current version | |
| if [ -f "VERSION" ]; then | |
| CURRENT_VERSION=$(cat VERSION) | |
| echo "📦 Current Version: $CURRENT_VERSION" | |
| else | |
| echo "⚠️ VERSION file not found" | |
| fi | |
| # Check README badge | |
| if [ -f "README.md" ]; then | |
| README_VERSION=$(grep -o "Version-[0-9]\+\.[0-9]\+\.[0-9]\+-blue" README.md | head -1 || echo "not found") | |
| echo "🏷️ README Badge: $README_VERSION" | |
| fi | |
| # Check sonar properties | |
| if [ -f "sonar-project.properties" ]; then | |
| SONAR_VERSION=$(grep "sonar.projectVersion=" sonar-project.properties | cut -d'=' -f2 || echo "not found") | |
| echo "🔍 SonarCloud Version: $SONAR_VERSION" | |
| fi | |
| # Check setup script | |
| if [ -f "setup.sh" ]; then | |
| SETUP_VERSION=$(grep "# Version:" setup.sh | cut -d':' -f2 | xargs || echo "not found") | |
| echo "⚙️ Setup Script Version: $SETUP_VERSION" | |
| fi | |
| echo "" | |
| echo "🎯 Version validation ensures consistency across all framework components." | |
| - name: Release Readiness Check | |
| if: github.ref == 'refs/heads/main' | |
| id: release-readiness | |
| env: | |
| COMMIT_MSG: ${{ github.event.head_commit.message }} | |
| run: | | |
| echo "" | |
| echo "🚀 Release Readiness Assessment" | |
| echo "===============================" | |
| # Check if this is a potential release commit | |
| echo "📝 Commit Message: $COMMIT_MSG" | |
| # Check for version bump indicators | |
| if echo "$COMMIT_MSG" | grep -qE "(BREAKING|MAJOR|💥|🚨)"; then | |
| echo "🔴 MAJOR version bump detected" | |
| elif echo "$COMMIT_MSG" | grep -qE "(FEATURE|FEAT|NEW|ADD|✨|🚀|📦)"; then | |
| echo "🟡 MINOR version bump detected" | |
| elif echo "$COMMIT_MSG" | grep -qE "(FIX|PATCH|BUG|IMPROVE|UPDATE|🔧|🐛|📝)"; then | |
| echo "🟢 PATCH version bump detected" | |
| else | |
| echo "⚪ No version bump indicators found" | |
| fi | |
| echo "" | |
| echo "💡 To create a release:" | |
| echo " ./.agents/scripts/version-manager.sh release [major|minor|patch]" | |
| echo "" | |
| echo "✅ Framework is ready for release when version validation passes." | |
| - name: Automated Release Check | |
| if: github.ref == 'refs/heads/main' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| echo "🚧 Automated Release Check" | |
| echo "==========================" | |
| if [ -f "VERSION" ]; then | |
| CURRENT_VERSION="v$(cat VERSION)" | |
| echo "Target Version: $CURRENT_VERSION" | |
| if git rev-parse "$CURRENT_VERSION" >/dev/null 2>&1; then | |
| echo "✅ Tag $CURRENT_VERSION already exists" | |
| else | |
| echo "✨ Ready to release $CURRENT_VERSION" | |
| echo " (Use version-manager.sh to trigger release)" | |
| fi | |
| fi |