From 32d2def93cba74c44dc76b8dcaa1b9df7510de04 Mon Sep 17 00:00:00 2001 From: BugKing Date: Mon, 11 Sep 2023 13:52:03 +0800 Subject: [PATCH] ci: push image to GHCR for pull_request event --- .github/workflows/halo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/halo.yaml b/.github/workflows/halo.yaml index 430c8dbb17..3c61b76506 100644 --- a/.github/workflows/halo.yaml +++ b/.github/workflows/halo.yaml @@ -60,5 +60,5 @@ jobs: ghcr-token: ${{ secrets.GHCR_TOKEN }} dockerhub-user: ${{ secrets.DOCKER_USERNAME }} dockerhub-token: ${{ secrets.DOCKER_TOKEN }} - push: ${{ github.event_name == 'push' || github.event_name == 'release' }} # we only push to GHCR if the push is to the next branch + push: ${{ github.event_name == 'pull_request' || github.event_name == 'push' || github.event_name == 'release' }} console-ref: ${{ github.event_name == 'release' && github.ref || 'main' }}