Quellcode durchsuchen

Disable the sync action in forks (#19934)

Chris Ross vor 6 Jahren
Ursprung
Commit
360bee0048
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      .github/workflows/runtime-sync.yml

+ 2 - 0
.github/workflows/runtime-sync.yml

@@ -10,6 +10,8 @@ on:
 
 
 jobs:
 jobs:
   compare_repos:
   compare_repos:
+    # Comment out this line to test the scripts in a fork
+    if: github.repository == 'dotnet/aspnetcore'
     name: Compare the shared code in the AspNetCore and Runtime repos and notify if they're out of sync.
     name: Compare the shared code in the AspNetCore and Runtime repos and notify if they're out of sync.
     runs-on: windows-latest
     runs-on: windows-latest
     steps:
     steps: