Skip to content

Commit

Permalink
Do not trigger publish-docker-image on dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham authored Oct 3, 2024
1 parent 2983bed commit f1c0c0a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ env:

jobs:
build-and-publish:
# Skip if PR is from a fork
if: github.event_name != 'pull_request' || github.event.repository.full_name == github.event.pull_request.head.repo.full_name
# Skip if PR is from a fork or triggered by Dependabot
if: >
github.event_name != 'pull_request' ||
(github.event.repository.full_name == github.event.pull_request.head.repo.full_name &&
github.actor != 'dependabot[bot]')
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit f1c0c0a

Please sign in to comment.