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 committed Dec 19, 2023
1 parent 2f0da31 commit bb6ed39
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/add-to-project@v0.5.0
Expand Down

0 comments on commit bb6ed39

Please sign in to comment.