From 15e04ba8a93ffb30ea0b7e60131f7af5058b0340 Mon Sep 17 00:00:00 2001 From: Alex Snaps Date: Mon, 15 Jan 2024 09:56:21 -0500 Subject: [PATCH] Only run gh action on local PRs --- .github/workflows/issues-workflow.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/issues-workflow.yaml b/.github/workflows/issues-workflow.yaml index 3017271d..27daba83 100644 --- a/.github/workflows/issues-workflow.yaml +++ b/.github/workflows/issues-workflow.yaml @@ -11,6 +11,10 @@ on: jobs: add-to-project: name: Add issue to project + # Only run jobs if the feature branch is in your repo (not in a fork) + # OR + # it is an issue + if: github.event.pull_request.head.repo.full_name == github.repository || github.event.issue.number != '' runs-on: ubuntu-latest steps: - uses: actions/add-to-project@v0.5.0