Browse Source

CI: fix root repo only automations running on forks (#7549)

* CI: fix root repo automation running on forks

* CI: remvoe reduandant eval express

Co-authored-by: apocelipes <[email protected]>

---------

Co-authored-by: apocelipes <[email protected]>
godot42 1 tháng trước cách đây
mục cha
commit
6bcf702525

+ 1 - 0
.github/workflows/deploy.yml

@@ -7,6 +7,7 @@ on:
 
 jobs:
   build:
+    if: github.repository == 'xmake-io/xmake-repo'  # only runs on root repository
     strategy:
       matrix:
         os: [ubuntu-latest]

+ 1 - 1
.github/workflows/sync.yml

@@ -6,12 +6,12 @@ on:
 
 jobs:
   build:
+    if: github.repository == 'xmake-io/xmake-repo' # only runs on root repository
     strategy:
       matrix:
         os: [ubuntu-latest]
 
     runs-on: ${{ matrix.os }}
-    if: ${{ github.repository }} == "xmake-io/xmake-repo"
 
     steps:
       - uses: actions/checkout@v1

+ 1 - 0
.github/workflows/sync_packagerefs.yml

@@ -6,6 +6,7 @@ on:
 
 jobs:
   build:
+    if: github.repository == 'xmake-io/xmake-repo' # only runs on root repository
     strategy:
       matrix:
         os: [ubuntu-latest]