From a5616dd0b8d16b0c47f378a52417b6c9c14018b1 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Wed, 8 Nov 2023 16:19:28 +0900 Subject: [PATCH] ci release: set title --- .github/workflows/release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c75bd7..3042e24 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,16 +10,17 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v4 - - name: Extract release note + - name: Create a release run: | ruby \ -e 'print("## stringio "); \ puts(ARGF.read.split(/^## /)[1])' \ NEWS.md > release-note.md - - name: Upload to release - run: | + title="$(head -n1 release-note.md | sed -e 's/^## //')" + tail -n +2 release-note.md > release-note-without-version.md gh release create ${GITHUB_REF_NAME} \ --discussion-category Announcements \ - --notes-file release-note.md + --notes-file release-note-without-version.md \ + --title "${title}" env: GH_TOKEN: ${{ github.token }}