浏览代码

ci: prevents action from running on forks (#11766)

qiang 1 年之前
父节点
当前提交
0387e1b906
共有 3 个文件被更改,包括 3 次插入0 次删除
  1. 1 0
      .github/workflows/ci.yml
  2. 1 0
      .github/workflows/size-data.yml
  3. 1 0
      .github/workflows/size-report.yml

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

@@ -16,6 +16,7 @@ jobs:
     uses: ./.github/workflows/test.yml
 
   continuous-release:
+    if: github.repository == 'vuejs/core'
     runs-on: ubuntu-latest
     steps:
       - name: Checkout

+ 1 - 0
.github/workflows/size-data.yml

@@ -18,6 +18,7 @@ env:
 
 jobs:
   upload:
+    if: github.repository == 'vuejs/core'
     runs-on: ubuntu-latest
 
     steps:

+ 1 - 0
.github/workflows/size-report.yml

@@ -18,6 +18,7 @@ jobs:
   size-report:
     runs-on: ubuntu-latest
     if: >
+      github.repository == 'vuejs/core' &&
       github.event.workflow_run.event == 'pull_request' &&
       github.event.workflow_run.conclusion == 'success'
     steps: