From 5d957db5c7d835f38ef6a9d72d01cdc2611a2b78 Mon Sep 17 00:00:00 2001 From: Guy Owen Date: Fri, 13 Oct 2023 16:23:02 +1100 Subject: [PATCH] [DDS-1723] Updated workflow event trigger for PRs. --- .github/workflows/build-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 05664b33..b4c28c1a 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -4,7 +4,7 @@ on: schedule: - cron: '23 20 * * 0' workflow_dispatch: - push: + pull_request: branches: - 'build/**' pull_request_target: @@ -15,7 +15,7 @@ env: REGISTRY: ghcr.io jobs: buildx: - if: github.event.pull_request.merged == true || (github.event_name == 'push' && startsWith(github.ref, 'refs/heads/build/')) || contains(fromJson('["schedule", "workflow_dispatch"]'), github.event_name) + if: github.event.pull_request.merged == true || (github.event_name == 'pull_request' && startsWith(github.ref, 'refs/heads/build/')) || contains(fromJson('["schedule", "workflow_dispatch"]'), github.event_name) runs-on: ubuntu-latest strategy: matrix: