Skip to content

Commit

Permalink
Merge pull request #547 from reviewdog/migrate-to-gh-command
Browse files Browse the repository at this point in the history
ci: replace 'create-release action' with gh cli
  • Loading branch information
shogo82148 committed Jun 19, 2023
2 parents 74cb707 + 68da708 commit 994abff
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Expand Up @@ -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' }}
Expand Down

0 comments on commit 994abff

Please sign in to comment.