-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github/workflows: auto generate changelog (#677)
Auto-generates changelog in github action. Also simplify by removing usage of docker image and just use local code. category: misc ticket: #320
- Loading branch information
1 parent
6c11659
commit 6deb116
Showing
2 changed files
with
9 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,31 +8,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Publish Release | ||
steps: | ||
|
||
# Wait for docker build to complete since we need pegged cli-reference. | ||
- uses: fountainhead/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
checkName: Build Docker Image | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- id: get-tag | ||
run: | | ||
tag=$(echo "${{ github.ref }}" | cut -d / -f 3) | ||
echo "::set-output name=tag::$tag" | ||
- run: docker run ghcr.io/obolnetwork/charon:${{steps.get-tag.outputs.tag}} run --help > cli-reference.txt | ||
|
||
- run: cat cli-reference.txt | ||
|
||
- run: go run . --help > cli-reference.txt | ||
- run: go run testutil/genchangelog/main.go | ||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
files: cli-reference.txt | ||
body: | | ||
![Obol Logo](https://obol.tech/obolnetwork.png) | ||
Charon client version `${{steps.get-tag.outputs.tag}}`. | ||
###### This software is in beta, use with caution | ||
body_path: changelog.md | ||
token: ${{ secrets.RELEASE_SECRET }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters