Skip to content

armgit / ente

Public Imported from GitHub
0

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

[meta] Omit unnecessary reruns of workflows when deploying

Manav Rathifa3f249a7a92
diff --git a/.github/workflows/auth-crowdin.yml b/.github/workflows/auth-crowdin.yml
index f269a8c8df..f5b6744817 100644
--- a/.github/workflows/auth-crowdin.yml
+++ b/.github/workflows/auth-crowdin.yml
@@ -2,12 +2,12 @@ name: "Sync Crowdin translations (auth)"
on:
push:
+ branches: [main]
paths:
# Run workflow when auth's intl_en.arb is changed
- "mobile/lib/l10n/arb/app_en.arb"
# Or the workflow itself is changed
- ".github/workflows/auth-crowdin.yml"
- branches: [main]
schedule:
# See: [Note: Run workflow on specific days of the week]
- cron: "50 1 * * 2,5"
diff --git a/.github/workflows/auth-lint.yml b/.github/workflows/auth-lint.yml
index 1b45a2d324..72d7b39856 100644
--- a/.github/workflows/auth-lint.yml
+++ b/.github/workflows/auth-lint.yml
@@ -3,7 +3,7 @@ name: "Lint (auth)"
on:
# Run on every push to a branch other than main that changes auth/
push:
- branches-ignore: [main]
+ branches-ignore: [main, "deploy/**"]
paths:
- "auth/**"
- ".github/workflows/auth-lint.yml"
diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml
index 01b0c2254a..772d158157 100644
--- a/.github/workflows/docs-deploy.yml
+++ b/.github/workflows/docs-deploy.yml
@@ -3,7 +3,7 @@ name: "Deploy (docs)"
on:
# Run on every push to main that changes docs/
push:
- branches: [main]
+ branches-ignore: [main, "deploy/**"]
paths:
- "docs/**"
- ".github/workflows/docs-deploy.yml"
diff --git a/.github/workflows/docs-verify-build.yml b/.github/workflows/docs-verify-build.yml
index addb52a059..a57f71c868 100644
--- a/.github/workflows/docs-verify-build.yml
+++ b/.github/workflows/docs-verify-build.yml
@@ -6,7 +6,7 @@ name: "Verify build (docs)"
on:
# Run on every push to a branch other than main that changes docs/
push:
- branches-ignore: [main]
+ branches-ignore: [main, "deploy/**"]
paths:
- "docs/**"
- ".github/workflows/docs-verify-build.yml"
diff --git a/.github/workflows/mobile-crowdin.yml b/.github/workflows/mobile-crowdin.yml
index 35b4c38769..3770098968 100644
--- a/.github/workflows/mobile-crowdin.yml
+++ b/.github/workflows/mobile-crowdin.yml
@@ -2,12 +2,12 @@ name: "Sync Crowdin translations (mobile)"
on:
push:
+ branches: [main]
paths:
# Run workflow when mobiles's intl_en.arb is changed
- "mobile/lib/l10n/intl_en.arb"
# Or the workflow itself is changed
- ".github/workflows/mobile-crowdin.yml"
- branches: [main]
schedule:
# See: [Note: Run workflow on specific days of the week]
- cron: "40 1 * * 2,5"
diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.yml
index cbbbbcfbbf..48e38dc6ce 100644
--- a/.github/workflows/mobile-lint.yml
+++ b/.github/workflows/mobile-lint.yml
@@ -3,7 +3,7 @@ name: "Lint (mobile)"
on:
# Run on every push to a branch other than main that changes mobile/
push:
- branches-ignore: [main, f-droid]
+ branches-ignore: [main, f-droid, "deploy/**"]
paths:
- "mobile/**"
- ".github/workflows/mobile-lint.yml"
diff --git a/.github/workflows/server-lint.yml b/.github/workflows/server-lint.yml
index c051d02901..d25f2adcc8 100644
--- a/.github/workflows/server-lint.yml
+++ b/.github/workflows/server-lint.yml
@@ -3,7 +3,7 @@ name: "Lint (server)"
on:
# Run on every push to a branch other than main that changes server/
push:
- branches-ignore: [main]
+ branches-ignore: [main, "deploy/**"]
paths:
- "server/**"
- ".github/workflows/server-lint.yml"
diff --git a/.github/workflows/web-crowdin.yml b/.github/workflows/web-crowdin.yml
index 8733167d65..45a3fa4a59 100644
--- a/.github/workflows/web-crowdin.yml
+++ b/.github/workflows/web-crowdin.yml
@@ -2,12 +2,12 @@ name: "Sync Crowdin translations (web)"
on:
push:
+ branches: [main]
paths:
# Run workflow when web's en-US/translation.json is changed
- "web/apps/photos/public/locales/en-US/translation.json"
# Or the workflow itself is changed
- ".github/workflows/web-crowdin.yml"
- branches: [main]
schedule:
# [Note: Run workflow on specific days of the week]
#
diff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.yml
index 7f5d270029..0dc11aa0e7 100644
--- a/.github/workflows/web-lint.yml
+++ b/.github/workflows/web-lint.yml
@@ -3,7 +3,7 @@ name: "Lint (web)"
on:
# Run on every push to a branch other than main that changes web/
push:
- branches-ignore: [main]
+ branches-ignore: [main, "deploy/**"]
paths:
- "web/**"
- ".github/workflows/web-lint.yml"