Skip to content

Commit c9e2428

Browse files
authored
Fix: Dependabot branches may not push Docker images
1 parent c1a6cc4 commit c9e2428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
3434
- name: Push the image to the cache
3535
# It's not possible to push packages from fork PRs.
36-
if: github.ref == 'refs/heads/main' || github.event.pull_request.head.repo.full_name
37-
== github.repository
36+
if: (github.ref == 'refs/heads/main' || github.event.pull_request.head.repo.full_name
37+
== github.repository) && github.actor != 'dependabot[bot]'
3838
run: |-
3939
docker tag pyaleph-node:${GITHUB_REF##*/} ghcr.io/$GITHUB_REPOSITORY/build-cache
4040
docker push ghcr.io/$GITHUB_REPOSITORY/build-cache

0 commit comments

Comments
 (0)