mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2026-04-03 08:16:54 +00:00
docs: remove fetch-depth from instructions since it's not needed anymore
This commit is contained in:
parent
a31f4b5793
commit
a8f11416e0
3 changed files with 0 additions and 12 deletions
|
|
@ -15,15 +15,11 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: wagoid/commitlint-github-action@v5
|
||||
```
|
||||
|
||||
Alternatively, you can run on other event types such as `on: [push]`. In that case the action will lint the push event's commit(s) instead of linting commits from a pull request. You can also combine `push` and `pull_request` together in the same workflow.
|
||||
|
||||
**Note**: It's necessary that you specify the `fetch-depth` argument to `actions/checkout@v2` step. By default they fetch only latest commit of the branch, but we need more commits since we validate a range of commit messages.
|
||||
|
||||
## Inputs
|
||||
|
||||
You can supply these inputs to the `wagoid/commitlint-github-action@v5` step.
|
||||
|
|
@ -139,8 +135,6 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue