Skip to content

Commit d08e90b

Browse files
Merge pull request #20819 from calixteman/avoid_stuck_actions
Avoid to have stuck actions when running update_locales task
2 parents a3a13f6 + d618a2b commit d08e90b

7 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: CI
2-
on: [push, pull_request]
2+
on: [push, pull_request, workflow_dispatch]
33
permissions:
44
contents: read
55

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: CodeQL
2-
on: [push, pull_request]
2+
on: [push, pull_request, workflow_dispatch]
33
permissions:
44
contents: read
55

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Code Coverage
2-
on: [push, pull_request]
2+
on: [push, pull_request, workflow_dispatch]
33
permissions:
44
contents: read
55

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Lint
2-
on: [push, pull_request]
2+
on: [push, pull_request, workflow_dispatch]
33
permissions:
44
contents: read
55

.github/workflows/prefs_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Prefs tests
2-
on: [push, pull_request]
2+
on: [push, pull_request, workflow_dispatch]
33
permissions:
44
contents: read
55

.github/workflows/types_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Types tests
2-
on: [push, pull_request]
2+
on: [push, pull_request, workflow_dispatch]
33
permissions:
44
contents: read
55

.github/workflows/update_locales.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
workflow_dispatch: # Allow manual triggering
77

88
permissions:
9+
actions: write
910
contents: write
1011
pull-requests: write
1112

@@ -47,3 +48,8 @@ jobs:
4748
--title "l10n: Update locale files" \
4849
--body "Automated weekly update of locale files from mozilla-central." \
4950
--label l10n || true
51+
# GITHUB_TOKEN-initiated pushes/PRs don't trigger other workflows.
52+
# Explicitly dispatch them so CI runs on the update-locales branch.
53+
for workflow in ci.yml lint.yml codeql.yml; do
54+
gh workflow run "$workflow" --ref update-locales
55+
done

0 commit comments

Comments
 (0)