Skip to content

Commit

Permalink
gh actions: disable job on forked PR's OR it's an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki authored and alexsnaps committed Jan 15, 2024
1 parent b7398ea commit 771147d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/issues-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ on:
jobs:
add-to-project:
name: Add issue to project
if: github.event.pull_request.head.repo.full_name == github.repository # Only run jobs if the feature branch is in your repo (not in a fork)
# 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/[email protected]
Expand Down

0 comments on commit 771147d

Please sign in to comment.