Skip to content

Commit

Permalink
build: removed gh cli call from release workflow (#473)
Browse files Browse the repository at this point in the history
The usage of the gh cli to generate the release notes has been removed
in favour of using the functionality of the action we are already using.

Signed-off-by: Richard Case <[email protected]>
  • Loading branch information
richardcase authored Jun 27, 2022
1 parent 7c72eec commit 7755ae0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
release:
runs-on: ubuntu-latest
needs: [test, build]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -56,23 +58,13 @@ jobs:
with:
name: flintlock-binaries
path: bin
- name: Generate release notes
run: |
release_notes=$(gh api repos/{owner}/{repo}/releases/generate-notes -F tag_name=${{ github.ref }} --jq .body)
echo 'RELEASE_NOTES<<EOF' >> $GITHUB_ENV
echo "${release_notes}" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: false
draft: true
fail_on_unmatched_files: true
body: ${{ env.RELEASE_NOTES }}
generate_release_notes: true
files: |
bin/flintlockd_amd64
bin/flintlockd_arm64
Expand Down

0 comments on commit 7755ae0

Please sign in to comment.