From 5efd23775e8c6b979fd4fbff3446f9aba77e5242 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Wed, 27 Mar 2024 16:36:28 +0100 Subject: [PATCH] GH Actions: improve the draft release creation Follow up on PR 159 This fixes the following warning: ``` Warning: Unexpected input(s) 'release_name', valid inputs are ['body', 'body_path', 'name', 'tag_name', 'draft', 'prerelease', 'files', 'fail_on_unmatched_files', 'repository', 'token', 'target_commitish', 'discussion_category_name', 'generate_release_notes', 'append_body', 'make_latest'] ``` And should make sure the tag and the release name don't contain the `refs/heads/` part of the tag reference. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c7948d..2ad848f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -120,8 +120,8 @@ jobs: - name: Draft Release uses: softprops/action-gh-release@v2 with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + tag_name: ${{ github.ref_name }} + name: Release ${{ github.ref_name }} draft: true prerelease: false make_latest: true