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'