Skip to content

Commit 66a1c2d

Browse files
authored
doc: update README.md (#21)
Have the base example first and bump the version of actions/checkout.
1 parent 33aa2fb commit 66a1c2d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,15 @@ jobs:
2525
runs-on: ubuntu-latest
2626
name: publiccode.yml validation
2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v5
2929
- uses: italia/publiccode-parser-action@v1
3030
with:
31-
publiccode: 'publiccode.yml' # relative path to your publiccode.yml
32-
comment-on-pr: true
33-
env:
34-
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
publiccode: 'publiccode.yml'
3532
```
3633
37-
### No comments in PR
34+
### Comments in the PR
3835
39-
If you don't want this action to report results as comments in the pull request:
36+
If you want this action to report results as inline comments in the pull request:
4037
4138
```yml
4239
on: [pull_request]
@@ -46,10 +43,13 @@ jobs:
4643
runs-on: ubuntu-latest
4744
name: publiccode.yml validation
4845
steps:
49-
- uses: actions/checkout@v2
46+
- uses: actions/checkout@v5
5047
- uses: italia/publiccode-parser-action@v1
5148
with:
52-
publiccode: 'publiccode.yml'
49+
publiccode: 'publiccode.yml' # relative path to your publiccode.yml
50+
comment-on-pr: true
51+
env:
52+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5353
```
5454
5555
## Contributing

0 commit comments

Comments
 (0)