From 3c0f5080c4f6a4248b4ec1c307075be6de5c391d Mon Sep 17 00:00:00 2001 From: Grachev Mikhail Date: Mon, 18 Mar 2024 18:57:22 +0300 Subject: [PATCH] chore(ci): replace `create-release` action with `gh` cli (#51) --- .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 3a6f69f..fe431ac 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'