This repository has been archived by the owner on Aug 30, 2022. 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.
[skip ci] Add auto changelog generator
- Loading branch information
1 parent
a7f3a42
commit 445a103
Showing
3 changed files
with
96 additions
and
8 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,6 @@ | ||
{ | ||
"template": "keepachangelog", | ||
"unreleased": true, | ||
"startingDate": "2021-08-08", | ||
"tagPattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$" | ||
} |
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 |
---|---|---|
@@ -1,17 +1,41 @@ | ||
name: changelog | ||
|
||
on: | ||
pull_request: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
generate_changelog: | ||
create_changelog_pr: | ||
runs-on: ubuntu-latest | ||
name: Generate changelog for master branch | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Generate changelog | ||
uses: heinrichreimer/[email protected] | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: cat CHANGELOG.md | ||
node-version: '14' | ||
- name: Update npm packages | ||
uses: technote-space/create-pr-action@v2 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} | ||
EXECUTE_COMMANDS: | | ||
npm install -g auto-changelog | ||
auto-changelog | ||
COMMIT_MESSAGE: 'chore: update changelog' | ||
PR_BRANCH_PREFIX: 'changelog/' | ||
PR_BRANCH_NAME: 'chore-update-changelog-${PR_ID}' | ||
PR_TITLE: 'chore: update changelog' | ||
PR_BODY: | | ||
<!-- START pr-commits --> | ||
<!-- END pr-commits --> | ||
## Base PullRequest | ||
${PR_TITLE} (${PR_NUMBER_REF}) | ||
## Command results | ||
<details> | ||
<summary>Details: </summary> | ||
${COMMANDS_OUTPUT} | ||
</details> | ||
## Changed files | ||
<details> | ||
<summary>${FILES_SUMMARY}: </summary> | ||
${FILES} | ||
</details> |
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