Skip to content

Commit

Permalink
do not run if dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
Zibbp committed Feb 11, 2025
1 parent bcd4369 commit 086551f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
# Login into GitHub Container Registry except on PR
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
if: github.event.pull_request.head.repo.full_name == github.repository
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -97,7 +97,7 @@ jobs:
id: build
uses: docker/build-push-action@v6
with:
push: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
push: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
Expand All @@ -114,7 +114,7 @@ jobs:
- name: Upload digest
uses: actions/upload-artifact@v4
if: github.event.pull_request.head.repo.full_name == github.repository
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: ${{ runner.temp }}/digests/*
Expand All @@ -125,7 +125,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- build
if: github.event.pull_request.head.repo.full_name == github.repository
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
steps:
- name: Set correct OCI image name
id: ociImageName
Expand Down

0 comments on commit 086551f

Please sign in to comment.