From f6f4ed9129f7fe9c95bb807d5626eab0d9452b9d Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 10 Sep 2026 15:58:27 +0700 Subject: [PATCH] =?UTF-8?q?CD:=20build/deploy=20=E0=B8=88=E0=B8=B2?= =?UTF-8?q?=E0=B8=81=20branch=20dev=20=E0=B9=81=E0=B8=97=E0=B8=99=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit เปลี่ยนการตรวจ tag ให้อยู่บน origin/dev + diff เช็ค schema เทียบ origin/dev Co-Authored-By: Claude Code --- .forgejo/workflows/build.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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