diff --git a/.github/workflows/create-release-branch.yaml b/.github/workflows/create-release-branch.yaml index 6bec81e01c..51cfc647d2 100644 --- a/.github/workflows/create-release-branch.yaml +++ b/.github/workflows/create-release-branch.yaml @@ -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: