Skip to content

Commit

Permalink
[#21] In case of dependabot's activities images are not built and pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan committed Nov 5, 2024
1 parent d4084a8 commit bd79476
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ env:
MAIN_BRANCH_NAME: master
jobs:
build-and-publish:
if: github.actor != 'dependabot[bot]'

runs-on: ubuntu-latest

steps:
Expand All @@ -26,7 +28,6 @@ jobs:
run: echo "${{ github.token }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin

- name: Push image
if: ${{ github.actor != 'dependabot[bot]' }}
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
# Change all uppercase to lowercase
Expand Down

0 comments on commit bd79476

Please sign in to comment.