diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8221d766a..453493560 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -120,7 +120,7 @@ jobs: version: ${{ needs.create-release.outputs.VERSION }} dispatch-release: - if: github.event_name == 'workflow_dispatch' + if: github.repository == 'lucide-icons/lucide' && github.event_name == 'workflow_dispatch' uses: './.github/workflows/release.yml' secrets: inherit permissions: diff --git a/.github/workflows/close-issue-with-banned-phrases.yml b/.github/workflows/close-issue-with-banned-phrases.yml index 11e9c5158..6e7369121 100644 --- a/.github/workflows/close-issue-with-banned-phrases.yml +++ b/.github/workflows/close-issue-with-banned-phrases.yml @@ -11,6 +11,7 @@ env: jobs: block_phrases: + if: github.repository == 'lucide-icons/lucide' runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/close-stale-prs.yml b/.github/workflows/close-stale-prs.yml index d3a0d5fce..e21e7c4ef 100644 --- a/.github/workflows/close-stale-prs.yml +++ b/.github/workflows/close-stale-prs.yml @@ -7,6 +7,7 @@ permissions: {} jobs: stale: + if: github.repository == 'lucide-icons/lucide' runs-on: ubuntu-latest permissions: pull-requests: write diff --git a/.github/workflows/comment-icon-preview.yml b/.github/workflows/comment-icon-preview.yml index c002edb05..fb4a33014 100644 --- a/.github/workflows/comment-icon-preview.yml +++ b/.github/workflows/comment-icon-preview.yml @@ -16,6 +16,7 @@ jobs: actions: read # Required to download the artifact from the triggering run pull-requests: write if: > + github.repository == 'lucide-icons/lucide' && github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' steps: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 97fe2cb48..458587079 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -6,6 +6,7 @@ permissions: {} jobs: triage: + if: github.repository == 'lucide-icons/lucide' permissions: contents: read pull-requests: write diff --git a/.github/workflows/pull-request-icon-preview.yml b/.github/workflows/pull-request-icon-preview.yml index f2f87ee58..70050730b 100644 --- a/.github/workflows/pull-request-icon-preview.yml +++ b/.github/workflows/pull-request-icon-preview.yml @@ -10,6 +10,7 @@ permissions: {} jobs: generate-changed-icons-comment: name: Generate Changed Icons Comment + if: github.repository == 'lucide-icons/lucide' runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/pull-request-metadata-suggestions.yml b/.github/workflows/pull-request-metadata-suggestions.yml index 4ccbddf42..6c09ed722 100644 --- a/.github/workflows/pull-request-metadata-suggestions.yml +++ b/.github/workflows/pull-request-metadata-suggestions.yml @@ -10,6 +10,7 @@ permissions: {} jobs: pull-request-metadata-suggestions: name: Pull Request Metadata Suggestions + if: github.repository == 'lucide-icons/lucide' runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/repo-journal.yml b/.github/workflows/repo-journal.yml index a1072a3a9..3ec7642d1 100644 --- a/.github/workflows/repo-journal.yml +++ b/.github/workflows/repo-journal.yml @@ -10,6 +10,7 @@ permissions: jobs: weekly-summary: + if: github.repository == 'lucide-icons/lucide' runs-on: ubuntu-latest steps: - name: Set up Node.js environment diff --git a/.github/workflows/request-review.yml b/.github/workflows/request-review.yml index 40bcb8766..e9c7c1a11 100644 --- a/.github/workflows/request-review.yml +++ b/.github/workflows/request-review.yml @@ -9,7 +9,7 @@ permissions: {} jobs: request-review: - if: github.event.pull_request.draft == false + if: github.repository == 'lucide-icons/lucide' && github.event.pull_request.draft == false runs-on: ubuntu-latest permissions: contents: read