Skip to content

Commit

Permalink
yolo: update readme to include fetch-depth
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Nov 26, 2024
1 parent e1b26a2 commit e781d34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validate Plugin Version
uses: jazzsequence/action-validate-plugin-version@v1
with:
Expand All @@ -28,6 +30,10 @@ jobs:
branch: 'main'
```
### Configuration
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.

### Inputs

#### `plugin-path`
Expand Down

0 comments on commit e781d34

Please sign in to comment.