Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
release: use go install to build git-chlog (#4877)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis committed Apr 13, 2022
1 parent 63cc2fb commit 27cba4e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/create-release-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,15 @@ jobs:
with:
go-version: '^1.16'
- name: install git-chglog
run: go get -u github.com/git-chglog/git-chglog/cmd/git-chglog # TODO don't do this
- name: reset go mod
run: |
git checkout -- go.mod
git checkout -- go.sum
run: GOBIN=${GITHUB_WORKSPACE} go install github.com/git-chglog/git-chglog/cmd/git-chglog@v0.15.1
- name: generate release notes
run: |
git tag ${{github.event.inputs.release_version}}
git-chglog --tag-filter-pattern 'v\d+\.\d+\.\d+$' --output releases/CHANGELOG-${{github.event.inputs.release_version}}.md ${{github.event.inputs.release_version}}
${GITHUB_WORKSPACE}/git-chglog --tag-filter-pattern 'v\d+\.\d+\.\d+$' --output releases/CHANGELOG-${{github.event.inputs.release_version}}.md ${{github.event.inputs.release_version}}
git tag -d ${{github.event.inputs.release_version}}
git add releases/CHANGELOG-${{github.event.inputs.release_version}}.md
- name: remove git-chglog binary
run: rm -f ${GITHUB_WORKSPACE}/git-chglog
- name: create pull request
uses: peter-evans/create-pull-request@v3
with:
Expand Down

0 comments on commit 27cba4e

Please sign in to comment.