Skip to content

Commit ccb8d8c

Browse files
committed
github-actions: exclude docker build for forked PRs or dependabot
1 parent 6d6b827 commit ccb8d8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
- run: pip-licenses
4141

4242
operator-image-buildable:
43+
# If no PR event or if a PR event that's caused by a non-fork and non dependabot actor
44+
if: github.event_name != 'pull_request' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' )
4345
runs-on: ubuntu-latest
4446
steps:
4547
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)