浏览代码

fix: prevent Deploy action running on forks

Oliver Eyton-Williams 4 年之前
父节点
当前提交
c2b38c19fa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .github/workflows/build.yml

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

@@ -8,7 +8,7 @@ on:
 jobs:
 jobs:
   test:
   test:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
-
+    if: github.repository == 'freeCodeCamp/devdocs'
     steps:
     steps:
     - uses: actions/checkout@v2.3.4
     - uses: actions/checkout@v2.3.4
     - name: Set up Ruby
     - name: Set up Ruby