From 24941d15110a415172a5332bcac8d15105c4aa1a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 2 Dec 2024 08:20:28 +0000 Subject: [PATCH] ci: Support PR trigger on CD workflow --- .github/workflows/cd_release_please.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd_release_please.yml b/.github/workflows/cd_release_please.yml index 0d23732..525a8ff 100644 --- a/.github/workflows/cd_release_please.yml +++ b/.github/workflows/cd_release_please.yml @@ -2,6 +2,8 @@ name: "CD: Release and Publish" on: workflow_dispatch: + pull_request: + types: [opened, synchronize, reopened] push: # Run on changes and let release-please create # PRs for version bumps and new releases @@ -45,7 +47,7 @@ jobs: uses: lekman/release-please-dotnet@v1 with: manifest: ".release-please-manifest.json" - branch: ${{ github.head_ref }} + branch: ${{ github.event.pull_request.head.ref || github.ref_name }} publish: name: Publish