Skip to content

Commit

Permalink
tools: simplify use of API for creating release (#66)
Browse files Browse the repository at this point in the history
We no longer need two API calls. We can
alternatively pass a new boolean to the create
release API.
  • Loading branch information
MylesBorins authored Sep 24, 2021
1 parent d59f5dc commit 2f0ed4b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const version = "${{ github.ref }}";
const { data: {name, body} } = await github.request(`POST /repos/${{ github.repository }}/releases/generate-notes`, {
tag_name: version
});
await github.request(`POST /repos/${{ github.repository }}/releases`, {
tag_name: version,
name,
body
generate_release_notes: true
});

0 comments on commit 2f0ed4b

Please sign in to comment.