Skip to content

Commit e781d34

Browse files
committed
yolo: update readme to include fetch-depth
1 parent e1b26a2 commit e781d34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
2325
- name: Validate Plugin Version
2426
uses: jazzsequence/action-validate-plugin-version@v1
2527
with:
@@ -28,6 +30,10 @@ jobs:
2830
branch: 'main'
2931
```
3032
33+
### Configuration
34+
35+
Your `actions/checkout` action should include `fetch-depth`. `fetch-depth: 0` ensures that all branches are pulled which is _necessary_ for ensuring that the _correct branch_ is used to create the pull request against.
36+
3137
### Inputs
3238

3339
#### `plugin-path`

0 commit comments

Comments
 (0)