Skip to content

Commit

Permalink
Update readme with suggested action for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasAlaif authored and katyo committed Apr 6, 2023
1 parent 3b2f17b commit 8ffc98c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ steps:
dry-run: true
```

Preventing failing on pull requests by disabling repository consistency check:
Do all checks in both push and pull requests, but only publish on push:

```yaml
steps:
Expand All @@ -94,8 +94,7 @@ steps:
override: true
- uses: katyo/publish-crates@v2
with:
dry-run: true
check-repo: ${{ github.event_name == 'push' }}
dry-run: ${{ github.event_name != 'push' }}
```

Prevent failing when there is no new version to publish:
Expand Down

0 comments on commit 8ffc98c

Please sign in to comment.