Skip to content

Commit 3700190

Browse files
authored
Merge pull request #31 from mkroening/pr-no-push
ci: don't try to push image on PRs
2 parents a29b9be + 0a4269d commit 3700190

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ jobs:
1414
steps:
1515
- uses: docker/setup-buildx-action@v3
1616
- uses: docker/login-action@v3
17+
if: github.event_name != 'pull_request'
1718
with:
1819
registry: ghcr.io
1920
username: ${{ github.actor }}
2021
password: ${{ secrets.GITHUB_TOKEN }}
2122
- uses: docker/build-push-action@v5
2223
with:
23-
push: true
24+
push: ${{ github.event_name != 'pull_request' }}
2425
tags: ghcr.io/hermit-os/hermit-toolchain:latest

0 commit comments

Comments
 (0)