Skip to content

Commit

Permalink
exclude Dependabot PRs from Docker builds
Browse files Browse the repository at this point in the history
GitHub Actions for these PRs initiated by Dependabot are always failing due to missing registry credentials
  • Loading branch information
peterstadler authored Sep 4, 2024
1 parent 55e593e commit 4195c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && github.actor != 'dependabot[bot]'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
Expand Down

0 comments on commit 4195c39

Please sign in to comment.