From fa198cc303100381eac312794228c8e0278e54d0 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Wed, 2 Nov 2022 20:43:40 +0100 Subject: [PATCH] :bookmark: Release v2.8.4 --- .github/workflows/auto-create-release.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/auto-create-release.yml b/.github/workflows/auto-create-release.yml index 276c729eb..286888df9 100644 --- a/.github/workflows/auto-create-release.yml +++ b/.github/workflows/auto-create-release.yml @@ -11,23 +11,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Extract body from changelog - id: extract run: | NEW_VERSION=$(echo '${{ github.ref }}' | sed 's/refs\/tags\/v//') echo $NEW_VERSION - RELEASE_BODY=$(sed -n -e "/## ${NEW_VERSION}/,/ extractedBody.md - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ncipollo/release-action@v1 with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - body: | - ${{ steps.extract.outputs.body }} - draft: false - prerelease: false + token: ${{ secrets.GITHUB_TOKEN }} + bodyFile: 'extractedBody.md'