From bd79476e76e9e8aef6bbb5be9e603c474d6cd8ba Mon Sep 17 00:00:00 2001 From: Daniil Palagin Date: Tue, 5 Nov 2024 12:05:21 +0100 Subject: [PATCH] [#21] In case of dependabot's activities images are not built and pushed --- .github/workflows/docker-image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index fc63014..cb7bb59 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -11,6 +11,8 @@ env: MAIN_BRANCH_NAME: master jobs: build-and-publish: + if: github.actor != 'dependabot[bot]' + runs-on: ubuntu-latest steps: @@ -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