From 960aba431f4bffe55f31649d47d961947ec6bf17 Mon Sep 17 00:00:00 2001 From: "Shao Yu-Lung (Allen)" Date: Wed, 4 Dec 2024 10:15:25 +0800 Subject: [PATCH] feat: new PR run build --- .github/workflows/dockerpublish.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dockerpublish.yml b/.github/workflows/dockerpublish.yml index cb5331a..446b1c7 100644 --- a/.github/workflows/dockerpublish.yml +++ b/.github/workflows/dockerpublish.yml @@ -5,10 +5,9 @@ on: branches: '**' tags: '**' pull_request: - branches: - - 'master' + branches: '**' schedule: - - cron: 0 0 * * 6 + - cron: 0 0 * * 6 jobs: build: @@ -53,5 +52,5 @@ jobs: with: file: Dockerfile-${{ matrix.php_version }} platforms: linux/amd64,linux/arm64,linux/386 - push: ${{ (github.repository == 'laradock/workspace') && (github.ref == 'refs/heads/master') }} + push: ${{ (github.event_name != 'pull_request') && (github.repository == 'laradock/workspace') && (github.ref == 'refs/heads/master') }} tags: ${{ steps.meta.outputs.tags }}