diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 1fd69a8..7d2bd0c 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -35,24 +35,24 @@ jobs: with: fetch-depth: 0 - - name: Verify tag is on main branch + - name: Verify tag is on dev branch run: | echo "======================================================" - echo "Verifying tag is pushed to main branch" + echo "Verifying tag is pushed to dev branch" echo "======================================================" echo "Tag: ${{ github.ref_name }}" echo "Commit: ${{ github.sha }}" - # Fetch main branch - git fetch origin main + # Fetch dev branch + git fetch origin dev - # Check if the tag's commit is on main branch - if git branch -r --contains ${{ github.sha }} | grep -q "origin/main"; then - echo "✅ Tag is on main branch" + # Check if the tag's commit is on dev branch + if git branch -r --contains ${{ github.sha }} | grep -q "origin/dev"; then + echo "✅ Tag is on dev branch" echo "test_branch=true" >> $GITHUB_ENV else - echo "❌ Tag is NOT on main branch" - echo "This workflow only triggers for tags pushed to main branch" + echo "❌ Tag is NOT on dev branch" + echo "This workflow only triggers for tags pushed to dev branch" echo "" echo "Current branches containing this commit:" git branch -r --contains ${{ github.sha }} @@ -63,7 +63,7 @@ jobs: id: schema-check run: | # โปรเจกต์นี้ใช้ Drizzle (drizzle-kit push) ไม่มีโฟลเดอร์ migrations — ดูการเปลี่ยนแปลงที่ db/schema.ts - if git diff --name-only origin/main...HEAD | grep -qE "^db/schema\.ts$"; then + if git diff --name-only origin/dev...HEAD | grep -qE "^db/schema\.ts$"; then echo "has_schema_changes=true" >> $GITHUB_OUTPUT echo "✅ Schema changes detected" else