|
@@ -3,10 +3,20 @@ name: "Lint (web)"
|
|
|
on:
|
|
|
# Run on every push (this also covers pull requests)
|
|
|
push:
|
|
|
+ # [Note: Specify branch when specifying a path filter]
|
|
|
+ #
|
|
|
+ # Path filters are ignored for tag pushes, which causes this workflow to
|
|
|
+ # always run when we push a tag. Defining an explicit branch solves the
|
|
|
+ # issue. From GitHub's docs:
|
|
|
+ #
|
|
|
+ # > if you define both branches/branches-ignore and paths/paths-ignore,
|
|
|
+ # > the workflow will only run when both filters are satisfied.
|
|
|
+ #
|
|
|
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
|
|
|
+ branches: ["**"]
|
|
|
+ # Only run if something changes in these paths
|
|
|
paths:
|
|
|
- # - But only if something changes inside web
|
|
|
- "web/**"
|
|
|
- # - Or if the there is some change in workflow itself
|
|
|
- ".github/workflows/web-lint.yml"
|
|
|
|
|
|
jobs:
|