فهرست منبع

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