瀏覽代碼

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 2 月之前
父節點
當前提交
6bcf702525
共有 3 個文件被更改,包括 3 次插入1 次删除
  1. 1 0
      .github/workflows/deploy.yml
  2. 1 1
      .github/workflows/sync.yml
  3. 1 0
      .github/workflows/sync_packagerefs.yml

+ 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]