forked from pre-commit/action
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: nitrocode/[email protected] | ||
- uses: nitrocode/[email protected].0 | ||
``` | ||
This does a few things: | ||
|
@@ -40,7 +40,7 @@ Here's a sample step configuration that only runs the `flake8` hook against all | |
the files (use the template above except for the `pre-commit` action): | ||
|
||
```yaml | ||
- uses: nitrocode/[email protected] | ||
- uses: nitrocode/[email protected].0 | ||
with: | ||
extra_args: flake8 --all-files | ||
``` | ||
|
@@ -65,7 +65,7 @@ pushing | |
next is passing the token to the pre-commit action | ||
|
||
```yaml | ||
- uses: nitrocode/[email protected] | ||
- uses: nitrocode/[email protected].0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
git_user_name: pre-commit | ||
|