Bladeren bron

feat: If condition added, to trigger the GitHub Action only in the specific organisation and repo

Vaclav Elias 2 jaren geleden
bovenliggende
commit
6df24ee27d

+ 2 - 0
.github/workflows/stride-docs-staging-azure.yml

@@ -18,6 +18,7 @@ on:
 
 jobs:
   build:
+    if: github.repository == 'stride3d/stride-docs'
     runs-on: windows-2022
 
     steps:
@@ -60,6 +61,7 @@ jobs:
         path: DocFX-app.zip
 
   deploy:
+    if: github.repository == 'stride3d/stride-docs'
     runs-on: windows-2022
     needs: build
     environment:

+ 2 - 1
.github/workflows/stride-docs-staging-fast-track-azure.yml

@@ -6,7 +6,7 @@ name: Build Stride Docs (Fast Track) for Azure Web App Staging
 on:
   # push:
   #   branches:
-  #     - main
+  #     - staging
   #   paths-ignore:
   #     - 'README.md'
   #     - 'Stride.Docs.sln'
@@ -18,6 +18,7 @@ on:
 
 jobs:
   build-deploy:
+    if: github.repository == 'stride3d/stride-docs'
     runs-on: windows-2022
     environment:
       name: 'Production'