1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

actions: skip trying to login and push for dependabot

This commit is contained in:
Philip Nagler-Frank 2022-05-06 19:25:40 +02:00
parent 0967cb0eeb
commit d77f1e1012

@ -24,7 +24,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' && !startsWith(github.ref, 'refs/pull')
if: github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/pull') && github.actor != "dependabot[bot]"
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b
with:
registry: ${{ env.REGISTRY }}
@ -46,6 +46,6 @@ jobs:
uses: docker/build-push-action@e551b19e49efd4e98792db7592c17c09b89db8d8
with:
context: .
push: ${{ github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/pull') }}
push: ${{ github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/pull') && github.actor != "dependabot[bot]" }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}