mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 13:08:17 +00:00
Add warning regarding checkout v2 behavior
This commit is contained in:
parent
bfa36c6087
commit
2311db86bb
1 changed files with 15 additions and 0 deletions
15
readme.md
15
readme.md
|
|
@ -77,3 +77,18 @@ job referencing semantic version multiple times. For example:
|
||||||
change_path: "src/migrations"
|
change_path: "src/migrations"
|
||||||
namespace: db
|
namespace: db
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Important Note Regarding the Checkout action
|
||||||
|
|
||||||
|
Beginning in v2, `actions/checkout` [does not include tags/history by default](https://github.com/actions/checkout/issues/100).
|
||||||
|
This history is required to determine the version correctly. To include the history
|
||||||
|
and tags, specify the fetch-depth parameter in your checkout action declaration. Specify
|
||||||
|
zero to pull the full history and tags.
|
||||||
|
|
||||||
|
```
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue