Update lint workflow to only trigger linting once on PRs
This commit is contained in:
12
.github/workflows/lint.yml
vendored
12
.github/workflows/lint.yml
vendored
@@ -1,13 +1,17 @@
|
|||||||
name: Lint
|
name: Lint
|
||||||
|
|
||||||
on: [push, pull_request, workflow_dispatch]
|
on:
|
||||||
|
push:
|
||||||
env:
|
branches: ['main']
|
||||||
FORCE_COLOR: 1
|
pull_request:
|
||||||
|
workflow_dispatch: # Allows running the workflow manually from the Actions tab
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
env:
|
||||||
|
FORCE_COLOR: 1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user