From fba5ab709b3f964c6f0ba68d26eda8d6b6ba756f Mon Sep 17 00:00:00 2001 From: Alex Snaps Date: Mon, 15 Jan 2024 09:55:10 -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 3017271..27daba8 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