diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f7537b1..f4a45db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,18 +37,15 @@ jobs: if_true: ${{ github.ref }} if_false: ${{ steps.bumpr.outputs.next_version }} - # Create release. - - uses: actions/create-release@v1 - if: "steps.tag.outputs.value != ''" + # Create release + - if: "steps.tag.outputs.value != ''" env: + TAG_NAME: ${{ steps.tag.outputs.value }} + BODY: ${{ steps.bumpr.outputs.message }} # This token is provided by Actions, you do not need to create your own token GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.tag.outputs.value }} - release_name: Release ${{ steps.tag.outputs.value }} - body: ${{ steps.bumpr.outputs.message }} - draft: false - prerelease: false + run: | + gh release create "${TAG_NAME}" -t "Release ${TAG_NAME/refs\/tags\//}" --notes "${BODY}" release-check: if: github.event.action == 'labeled'