This repository has been archived by the owner on Dec 17, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github action automatic changelog updated added (#158)
- Loading branch information
1 parent
87b285b
commit 8aa6953
Showing
3 changed files
with
4,272 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: "update changelog" | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
update-changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Update changelog | ||
run: | | ||
npm install github-release-notes | ||
export GREN_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} | ||
npm run overrideChangelog | ||
- name: push changelog.md | ||
run: | | ||
echo ${GITHUB_REF#refs/tags/} | ||
git fetch | ||
git status | ||
git diff CHANGELOG.md | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
git switch main | ||
git add CHANGELOG.md | ||
git commit -m "CHANGELOG.md updated" | ||
git push | ||
working-directory: ./ |
Oops, something went wrong.