Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Stop unnecessary lint workflows from running on pushing tags

Manav Rathicbf0223f07d8
diff --git a/.github/workflows/auth-lint.yml b/.github/workflows/auth-lint.yml
index ec108e6a9c..68fc516439 100644
--- a/.github/workflows/auth-lint.yml
+++ b/.github/workflows/auth-lint.yml
@@ -1,12 +1,13 @@
name: "Lint (auth)"
on:
- # Run on every push (this also covers pull requests)
+ # Run on every push to branches (this also covers pull requests)
push:
+ # See: [Note: Specify branch when specifying a path filter]
+ branches: ["**"]
+ # Only run if something changes in these paths
paths:
- # - But only if something changes inside auth
- "auth/**"
- # - Or if the there is some change in workflow itself
- ".github/workflows/auth-lint.yml"
jobs:
diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.yml
index e1ff20ded2..2f5b332af6 100644
--- a/.github/workflows/mobile-lint.yml
+++ b/.github/workflows/mobile-lint.yml
@@ -3,10 +3,11 @@ name: "Lint (mobile)"
on:
# Run on every push (this also covers pull requests)
push:
+ # See: [Note: Specify branch when specifying a path filter]
+ branches: ["**"]
+ # Only run if something changes in these paths
paths:
- # - But only if something changes inside mobile
- "mobile/**"
- # - Or if the there is some change in workflow itself
- ".github/workflows/mobile-lint.yml"
jobs:
diff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.yml
index 50833e1951..12c07c8697 100644
--- a/.github/workflows/web-lint.yml
+++ b/.github/workflows/web-lint.yml
@@ -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: