Skip to content

Commit 3d6f627

Browse files
authored
fix: prevent stats workflow from running on forks (anomalyco#5897)
1 parent 2f48c8c commit 3d6f627

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/stats.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ on:
55
- cron: "0 12 * * *" # Run daily at 12:00 UTC
66
workflow_dispatch: # Allow manual trigger
77

8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
810
jobs:
911
stats:
12+
if: github.repository == 'sst/opencode'
1013
runs-on: blacksmith-4vcpu-ubuntu-2404
1114
permissions:
1215
contents: write

0 commit comments

Comments
 (0)