From 68da708267fd6c6a49c105ceefc72153d1a88a8b Mon Sep 17 00:00:00 2001 From: ICHINOSE Shogo Date: Tue, 20 Jun 2023 00:20:05 +0900 Subject: [PATCH] ci: replace 'create-release action' with gh cli This commit replaces the [create-release action](https://github.com/actions/create-release) since this action was deprecated. --- .github/workflows/release.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72f94692..3cd308ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,17 +38,13 @@ jobs: if_false: ${{ steps.bumpr.outputs.next_version }} # Create release. - - uses: actions/create-release@v1 - if: "${{ steps.tag.outputs.value != '' }}" + - if: "steps.tag.outputs.value != ''" env: - # This token is provided by Actions, you do not need to create your own token + TAG_NAME: ${{ steps.tag.outputs.value }} + BODY: ${{ steps.bumpr.outputs.message }} 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' }}