From e7242db397007b1f54db2c31f31244113c4f9e95 Mon Sep 17 00:00:00 2001 From: Chun-Yen Chen <70311975+ChunYen-Chen@users.noreply.github.com> Date: Tue, 22 Oct 2024 17:15:24 +0800 Subject: [PATCH] Trigger workflow when merged PR --- .github/workflows/copy-doc-to-wiki.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/copy-doc-to-wiki.yml b/.github/workflows/copy-doc-to-wiki.yml index 0447e821b..52676859a 100644 --- a/.github/workflows/copy-doc-to-wiki.yml +++ b/.github/workflows/copy-doc-to-wiki.yml @@ -2,6 +2,9 @@ name: Copy doc to wiki on: workflow_dispatch: + pull_request_target: + types: + - closed env: GIT_AUTHOR_NAME: Actionbot @@ -9,6 +12,7 @@ env: jobs: job-copy-doc-to-wiki: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - name: Checkout Repo