mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-22 07:25:43 +08:00
docs(readme): reword the checkout note
This commit is contained in:
22
README.md
22
README.md
@@ -20,18 +20,16 @@ This action generates a changelog based on your Git history using [git-cliff](ht
|
|||||||
- `OUTPUT`: Output file. (Default: `"git-cliff/CHANGELOG.md"`)
|
- `OUTPUT`: Output file. (Default: `"git-cliff/CHANGELOG.md"`)
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
> It is important to checkout the repositories as:
|
> Check out the entire history via `fetch-depth: 0` before running this action.
|
||||||
>
|
>
|
||||||
> ```yaml
|
> ```yaml
|
||||||
> - name: Checkout
|
> - name: Checkout
|
||||||
> uses: actions/checkout@v4
|
> uses: actions/checkout@v4
|
||||||
> with:
|
> with:
|
||||||
> fetch-depth: 0
|
> fetch-depth: 0
|
||||||
> ```
|
> ```
|
||||||
>
|
>
|
||||||
> `fetch-depth: 0` the is key input here to checkout action.
|
> Otherwise, you might end up getting empty changelogs or `git ref` errors depending on arguments passed to `git-cliff`.
|
||||||
>
|
|
||||||
> Otherwise, you might end-up getting empty changelogs or `git ref` errors depending on arguments passed to `git-cliff`.
|
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user