瀏覽代碼

Disable code coverage action on forks (#4948)

Daniele Vettorel 2 年之前
父節點
當前提交
7f2cbf3fe1
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .github/workflows/coverage-gh-pages.yml

+ 2 - 0
.github/workflows/coverage-gh-pages.yml

@@ -22,6 +22,7 @@ jobs:
   # Build job
   build:
     runs-on: ubuntu-latest
+    if: github.repository == 'microsoft/DirectXShaderCompiler'
     timeout-minutes: 240
     steps:
       - name: Checkout
@@ -52,6 +53,7 @@ jobs:
       name: github-pages
       url: ${{ steps.deployment.outputs.page_url }}
     runs-on: ubuntu-latest
+    if: github.repository == 'microsoft/DirectXShaderCompiler'
     needs: build
     steps:
       - name: Deploy to GitHub Pages