From fe564269bad14c3d395f28c7b27df3f604e03fed Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Fri, 8 Mar 2024 10:28:09 +0800 Subject: [PATCH] fix release drafer error https://github.com/release-drafter/release-drafter/issues/1125 --- .github/workflows/release-drafter.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 0a152f6..130661f 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -2,6 +2,12 @@ name: Release Drafter on: workflow_call: + inputs: + commitish: + required: false + type: string + default: "main" + description: The release target, i.e. branch or commit it should point to. jobs: update_release_draft: @@ -15,5 +21,7 @@ jobs: steps: # Draft your next Release notes as Pull Requests are merged into the default branch - uses: release-drafter/release-drafter@v6 + with: + commitish: '${{ commitish }}' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}