Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: removed gh cli call from release workflow #473

Merged
merged 2 commits into from
Jun 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
build: removed gh cli call from release workflow
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 <richard.case@outlook.com>
richardcase committed Jun 27, 2022

Verified

This commit was signed with the committer’s verified signature. The key has been revoked.
richardcase Richard Case
commit 3861faf617d8cbfb0a18b12109189774b1248d09
14 changes: 3 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -46,6 +46,8 @@ jobs:
release:
runs-on: ubuntu-latest
needs: [test, build]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -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