-
Notifications
You must be signed in to change notification settings - Fork 204
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
1 parent
a8db378
commit 44943c6
Showing
2 changed files
with
24 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Run and Apply Linter | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: [ master ] | ||
jobs: | ||
run-and-apply: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 1 | ||
steps: | ||
- name: Checkout main branch | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- name: Permission workaround | ||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- name: Run linter | ||
run: tox -e lint | ||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
message: 'Commit automated linter changes' | ||
add: '.' |
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