Skip to content

Commit

Permalink
docs(*): update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
BobAnkh committed Jul 30, 2020
1 parent 7cb0ddd commit 70796e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: BobAnkh/auto-generate-changelog@master
with:
REPO_NAME: 'BobAnkh/auto-generate-changelog'
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
PATH: '/CHANGELOG.md'
COMMIT_MESSAGE: 'docs(CHANGELOG): update CHANGELOG'
COMMIT_MESSAGE: 'docs(CHANGELOG): update release notes'
FEAT: '1'
FIX: '1'
DOCS: '1'
Expand All @@ -39,14 +41,18 @@ jobs:
PERF: '1'
```
> NOTE: Generating CHANGELOG needs all the commit history so you should set `fetch-depth: 0` with `actions/checkout`
>
> NOTE: commit log begins with `docs(changelog)` or `doc(CHANGELOG)` will not be added to the CHANGELOG

### Parameters

| Parameter | Description | Required | Default |
| --- | --- | --- | --- |
| REPO_NAME| Repository name | yes | - |
| ACCESS_TOKEN | Github Access Token | yes | You can just pass `${{secrets.GITHUB_TOKEN}}` |
| PATH | Path to the file you want to add contributors' list | no | `/CHANGELOG.md` |
| COMMIT_MESSAGE | commit message | no | `docs(CHANGELOG): update CHANGELOG` |
| COMMIT_MESSAGE | commit message | no | `docs(CHANGELOG): update release notes` |
| FEAT | Set 1 to generate it | no | `1` |
| FIX | Set 1 to generate it | no | `1` |
| DOCS | Set 1 to generate it | no | `1` |
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Auto-add contributors"
description: "Add contributors to your file automatically on schedule"
name: "Auto-generate CHANGELOG"
description: "Generate CHANGELOG according to conventional commits automatically when released"
author: "BobAnkh"
branding:
icon: 'award'
Expand All @@ -18,7 +18,7 @@ inputs:
COMMIT_MESSAGE:
description: "Commit message"
required: false
default: 'docs(CHANGELOG): update CHANGELOG'
default: 'docs(CHANGELOG): update release notes'
FEAT:
description: "Set 1 to generate it"
required: false
Expand Down

0 comments on commit 70796e5

Please sign in to comment.