chore: disable workflows in forks

This commit is contained in:
zhom
2026-03-24 01:03:05 +04:00
parent c782ef1961
commit b00b773c07
7 changed files with 26 additions and 9 deletions
+3 -2
View File
@@ -19,7 +19,7 @@ permissions:
jobs:
analyze-issue:
if: github.event_name == 'issues'
if: github.repository == 'zhom/donutbrowser' && github.event_name == 'issues'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
@@ -67,7 +67,7 @@ jobs:
- Never exceed 6 items total.
analyze-pr:
if: github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]'
if: github.repository == 'zhom/donutbrowser' && github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
@@ -118,6 +118,7 @@ jobs:
opencode-command:
if: |
github.repository == 'zhom/donutbrowser' &&
(github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment') &&
(contains(github.event.comment.body, ' /oc') ||
startsWith(github.event.comment.body, '/oc') ||