ci: trigger action when PR merged

This commit is contained in:
Larvan2
2024-04-20 11:01:04 +08:00
parent e2b1b10d33
commit 1f6dbe4278

View File

@@ -1,9 +1,13 @@
name: Build Pre-Release name: Build Pre-Release
on: on:
workflow_dispatch: workflow_dispatch:
pull_request:
branches: [main]
types: [closed]
jobs: jobs:
BuildPreRelease: BuildPreRelease:
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Repository - name: Checkout Repository