Procházet zdrojové kódy

fix: prevent stats workflow from running on forks (#5897)

Adam Hosker před 3 měsíci
rodič
revize
3d6f62746a
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      .github/workflows/stats.yml

+ 3 - 0
.github/workflows/stats.yml

@@ -5,8 +5,11 @@ on:
     - cron: "0 12 * * *" # Run daily at 12:00 UTC
     - cron: "0 12 * * *" # Run daily at 12:00 UTC
   workflow_dispatch: # Allow manual trigger
   workflow_dispatch: # Allow manual trigger
 
 
+concurrency: ${{ github.workflow }}-${{ github.ref }}
+
 jobs:
 jobs:
   stats:
   stats:
+    if: github.repository == 'sst/opencode'
     runs-on: blacksmith-4vcpu-ubuntu-2404
     runs-on: blacksmith-4vcpu-ubuntu-2404
     permissions:
     permissions:
       contents: write
       contents: write