Skip to content

Commit

Permalink
docs: update readme with latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadnassri committed Nov 20, 2023
1 parent 034d457 commit 73b4f71
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ahmadnassri/action-commit-lint@v1
- uses: ahmadnassri/action-commit-lint@v2
```
###### use different built-in config
Expand All @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ahmadnassri/action-commit-lint@v1
- uses: ahmadnassri/action-commit-lint@v2
with:
config: angular
```
Expand All @@ -51,8 +51,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-commit-lint@v1
- uses: actions/checkout@v4
- uses: ahmadnassri/action-commit-lint@v2
with:
config: ./path/to/commitlint.config
```
Expand Down
21 changes: 11 additions & 10 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ahmadnassri/action-commit-lint@v1
- uses: ahmadnassri/action-commit-lint@v2
```
###### use different built-in config
Expand All @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ahmadnassri/action-commit-lint@v1
- uses: ahmadnassri/action-commit-lint@v2
with:
config: angular
```
Expand All @@ -44,24 +44,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-commit-lint@v1
- uses: actions/checkout@v4
- uses: ahmadnassri/action-commit-lint@v2
with:
config: ./path/to/commitlint.config
```
> **Notes** _for custom rules_:
> - must use `action/checkout` first_
>
> - must use `action/checkout` first\_
> - `config` is relative to your repo's root
> - config file format must follow [`commitlint` configuration format](https://commitlint.js.org/#/reference-configuration)

### Inputs & Outputs

| output | type | required | default | description |
| --------- | ------ | -------- | -------------- | --------------------------------------------------------- |
| `token` | input | ❌ | `-` | The GitHub token used to inspect the pull-request commits |
| `config` | input | ❌ | `conventional` | name of config to use, or path to config file |
| `report` | output | `N/A` | `-` | a JSON object with the full `commitlint` report data |
| output | type | required | default | description |
| -------- | ------ | -------- | -------------- | --------------------------------------------------------- |
| `token` | input | ❌ | `-` | The GitHub token used to inspect the pull-request commits |
| `config` | input | ❌ | `conventional` | name of config to use, or path to config file |
| `report` | output | `N/A` | `-` | a JSON object with the full `commitlint` report data |

#### built-in configs

Expand Down

0 comments on commit 73b4f71

Please sign in to comment.