From 2a8799ac5b28f553e74e7603af4b41a41054a79c Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Fri, 10 Apr 2026 19:20:49 +0700 Subject: [PATCH] fix(ci): correct workflow branch targets from main to master MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All three GitHub Actions workflows (CI, E2E, Deploy) referenced branches: [main] but the repository default branch is master. This meant CI never triggered on pushes or PRs to master. - ci.yml: push/PR triggers → master - e2e.yml: push/PR triggers → master - deploy.yml: push trigger + latest tag condition → master Co-Authored-By: Paperclip --- .github/workflows/ci.yml | 4 ++-- .github/workflows/deploy.yml | 8 ++++---- .github/workflows/e2e.yml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32718af..9f1d18c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [main] + branches: [master] pull_request: - branches: [main] + branches: [master] concurrency: group: ci-${{ github.ref }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2a15b20..16734d0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Deploy on: push: - branches: [main] + branches: [master] workflow_dispatch: inputs: environment: @@ -52,7 +52,7 @@ jobs: tags: | type=sha,prefix= type=ref,event=branch - type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} + type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }} - name: Build and push API image uses: docker/build-push-action@v6 @@ -94,7 +94,7 @@ jobs: tags: | type=sha,prefix= type=ref,event=branch - type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} + type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }} - name: Build and push Web image uses: docker/build-push-action@v6 @@ -136,7 +136,7 @@ jobs: tags: | type=sha,prefix= type=ref,event=branch - type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} + type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }} - name: Build and push AI Services image uses: docker/build-push-action@v6 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 91ffcc6..0722d40 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -2,9 +2,9 @@ name: E2E Tests on: push: - branches: [main] + branches: [master] pull_request: - branches: [main] + branches: [master] concurrency: group: e2e-${{ github.ref }}