From 737f24d5a4092f156a28b200868c6edac4947f00 Mon Sep 17 00:00:00 2001 From: Florian OMNES Date: Fri, 24 May 2024 09:35:47 +0200 Subject: [PATCH] Fix target branch for new releases ``` gh release create --help --target branch Target branch or full commit SHA (default [main branch]) ``` --- .github/workflows/new_release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/new_release.yml b/.github/workflows/new_release.yml index 1f3c31f0c3..d93723f742 100644 --- a/.github/workflows/new_release.yml +++ b/.github/workflows/new_release.yml @@ -9,6 +9,9 @@ on: release_tag: description: "Release tag" required: true + target_branch: + description: "Target branch or full commit SHA" + required: true release_name: description: "Release name" required: true @@ -29,12 +32,14 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} tag: ${{ github.event.inputs.release_tag }} + target: ${{ github.event.inputs.target_branch }} title: ${{ github.event.inputs.release_name }} tests: ${{ github.event.inputs.run-tests }} target_branch: ${{ github.event.inputs.target_branch }} latest: ${{ github.event.inputs.set_latest }} run: | gh release create "$tag" \ + --target="$target" \ --repo="$GITHUB_REPOSITORY" \ --title="$title" \ --notes="Run tests: $tests"\