-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lint workflow to only trigger linting once on PRs
- Loading branch information
1 parent
5c03e02
commit 9dfd8f4
Showing
1 changed file
with
8 additions
and
4 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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
on: | ||
push: | ||
branches: ['main'] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
marcwrobel
Author
Member
|
||
pull_request: | ||
workflow_dispatch: # Allows running the workflow manually from the Actions tab | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
I'm not a fan of this branch restriction, it means contributors cannot run the CI on their fork when using feature branches.
The restriction encourages them to work on their
main
branch, which is not a best practice.