1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-28 15:56:28 +00:00

ci: Remove CHANGELOG.md generation

Because of permissions issues with having bots push to master, it
looks like it won't be possible to do from an Action right now.
This commit is contained in:
Matan Kushner 2019-10-25 21:51:21 +09:00
parent 221f07548c
commit e0254f26e2
No known key found for this signature in database
GPG Key ID: 4B98C3A8949CA8A4

View File

@ -187,32 +187,6 @@ jobs:
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
generate_changelog:
if: github.ref == 'refs/heads/master'
name: Update Changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Delete old changelog
run: rm -rf CHANGELOG.md
- name: Generate changelog
run: |
# Temporary fix for https://github.com/actions/setup-go/issues/14
export PATH=$PATH:$(go env GOPATH)/bin
go get -u github.com/git-chglog/git-chglog/cmd/git-chglog
git-chglog -c .github/chglog/changelog.yml > CHANGELOG.md
- name: Commit new changelog
run: |
git config --global user.email "bot@starship.rs"
git config --global user.name "Starship Bot"
git checkout master
git add CHANGELOG.md
git commit -m "Update changelog"
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Create GitHub release with Rust build targets and release notes
github_release:
if: startsWith(github.ref, 'refs/tags/v')