maziggy 3 ماه پیش
والد
کامیت
d2c720e70f
1فایلهای تغییر یافته به همراه11 افزوده شده و 11 حذف شده
  1. 11 11
      .github/workflows/ci.yml

+ 11 - 11
.github/workflows/ci.yml

@@ -6,8 +6,8 @@ on:
   pull_request:
   pull_request:
     # Run on all PRs, but skip for repo owner (runs local tests)
     # Run on all PRs, but skip for repo owner (runs local tests)
 
 
-# Skip CI for repo owner's PRs (they run tests locally)
-# This check is applied to all jobs below
+# Skip CI for PRs authored by repo owner (they run tests locally)
+# Uses PR author instead of triggering actor so rebasing by owner doesn't skip CI
 
 
 env:
 env:
   PYTHON_VERSION: '3.11'
   PYTHON_VERSION: '3.11'
@@ -30,7 +30,7 @@ jobs:
   backend-lint:
   backend-lint:
     name: Backend Lint
     name: Backend Lint
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    if: github.event_name == 'push' || github.actor != github.repository_owner
+    if: github.event_name == 'push' || github.event.pull_request.user.login != github.repository_owner
     steps:
     steps:
       - uses: actions/checkout@v4
       - uses: actions/checkout@v4
 
 
@@ -51,7 +51,7 @@ jobs:
   backend-security:
   backend-security:
     name: Backend Security
     name: Backend Security
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    if: github.event_name == 'push' || github.actor != github.repository_owner
+    if: github.event_name == 'push' || github.event.pull_request.user.login != github.repository_owner
     continue-on-error: true
     continue-on-error: true
     steps:
     steps:
       - uses: actions/checkout@v4
       - uses: actions/checkout@v4
@@ -73,7 +73,7 @@ jobs:
   backend-tests:
   backend-tests:
     name: Backend Tests
     name: Backend Tests
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    if: github.event_name == 'push' || github.actor != github.repository_owner
+    if: github.event_name == 'push' || github.event.pull_request.user.login != github.repository_owner
     needs: backend-lint
     needs: backend-lint
     steps:
     steps:
       - uses: actions/checkout@v4
       - uses: actions/checkout@v4
@@ -110,7 +110,7 @@ jobs:
   frontend-lint:
   frontend-lint:
     name: Frontend Lint
     name: Frontend Lint
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    if: github.event_name == 'push' || github.actor != github.repository_owner
+    if: github.event_name == 'push' || github.event.pull_request.user.login != github.repository_owner
     steps:
     steps:
       - uses: actions/checkout@v4
       - uses: actions/checkout@v4
 
 
@@ -132,7 +132,7 @@ jobs:
   frontend-security:
   frontend-security:
     name: Frontend Security
     name: Frontend Security
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    if: github.event_name == 'push' || github.actor != github.repository_owner
+    if: github.event_name == 'push' || github.event.pull_request.user.login != github.repository_owner
     continue-on-error: true
     continue-on-error: true
     steps:
     steps:
       - uses: actions/checkout@v4
       - uses: actions/checkout@v4
@@ -155,7 +155,7 @@ jobs:
   frontend-typecheck:
   frontend-typecheck:
     name: Frontend Type Check
     name: Frontend Type Check
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    if: github.event_name == 'push' || github.actor != github.repository_owner
+    if: github.event_name == 'push' || github.event.pull_request.user.login != github.repository_owner
     steps:
     steps:
       - uses: actions/checkout@v4
       - uses: actions/checkout@v4
 
 
@@ -177,7 +177,7 @@ jobs:
   frontend-tests:
   frontend-tests:
     name: Frontend Tests
     name: Frontend Tests
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    if: github.event_name == 'push' || github.actor != github.repository_owner
+    if: github.event_name == 'push' || github.event.pull_request.user.login != github.repository_owner
     needs: [frontend-lint, frontend-typecheck]
     needs: [frontend-lint, frontend-typecheck]
     steps:
     steps:
       - uses: actions/checkout@v4
       - uses: actions/checkout@v4
@@ -201,7 +201,7 @@ jobs:
   frontend-build:
   frontend-build:
     name: Frontend Build
     name: Frontend Build
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    if: github.event_name == 'push' || github.actor != github.repository_owner
+    if: github.event_name == 'push' || github.event.pull_request.user.login != github.repository_owner
     needs: [frontend-tests]
     needs: [frontend-tests]
     steps:
     steps:
       - uses: actions/checkout@v4
       - uses: actions/checkout@v4
@@ -228,7 +228,7 @@ jobs:
   docker-test:
   docker-test:
     name: Docker Build
     name: Docker Build
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    if: github.event_name == 'push' || github.actor != github.repository_owner
+    if: github.event_name == 'push' || github.event.pull_request.user.login != github.repository_owner
     timeout-minutes: 20
     timeout-minutes: 20
     needs: [backend-tests, frontend-build]
     needs: [backend-tests, frontend-build]
     steps:
     steps: