зеркало из https://github.com/Azure/aks-engine.git
release: use go install to build git-chlog (#4877)
This commit is contained in:
Родитель
63cc2fb017
Коммит
27cba4eeef
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче