From 1f6dbe427847a9169ff44fd69d31e091de68de6d Mon Sep 17 00:00:00 2001 From: Larvan2 <78135608+Larvan2@users.noreply.github.com> Date: Sat, 20 Apr 2024 11:01:04 +0800 Subject: [PATCH] ci: trigger action when PR merged --- .github/workflows/build-pre-release.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-pre-release.yaml b/.github/workflows/build-pre-release.yaml index 7dd6f68d..46646b62 100644 --- a/.github/workflows/build-pre-release.yaml +++ b/.github/workflows/build-pre-release.yaml @@ -1,9 +1,13 @@ name: Build Pre-Release on: workflow_dispatch: + pull_request: + branches: [main] + types: [closed] jobs: BuildPreRelease: + if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - name: Checkout Repository