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

thinking-toggle-wip
Adam Hosker 2025-12-21 17:32:00 +00:00 committed by Aiden Cline
parent a81cd3c8c4
commit 76b0ac2204
1 changed files with 3 additions and 0 deletions

View File

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