Avoid to have stuck actions when running update_locales task

The task update_locales is using the GITHUB_TOKEN to push the changes to
the update-locales branch, but this token doesn't trigger other workflows (see [1]),
so we need to explicitly dispatch the required ones.

[1] https://github.com/orgs/community/discussions/26970#discussioncomment-3254152
This commit is contained in:
calixteman 2026-03-06 14:51:37 +01:00
parent a4fcd830cc
commit d618a2bc7e
No known key found for this signature in database
GPG Key ID: 0C5442631EE0691F
7 changed files with 12 additions and 6 deletions

View File

@ -1,5 +1,5 @@
name: CI
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read

View File

@ -1,5 +1,5 @@
name: CodeQL
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read

View File

@ -1,5 +1,5 @@
name: Code Coverage
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read

View File

@ -1,5 +1,5 @@
name: Lint
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read

View File

@ -1,5 +1,5 @@
name: Prefs tests
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read

View File

@ -1,5 +1,5 @@
name: Types tests
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read

View File

@ -6,6 +6,7 @@ on:
workflow_dispatch: # Allow manual triggering
permissions:
actions: write
contents: write
pull-requests: write
@ -47,3 +48,8 @@ jobs:
--title "l10n: Update locale files" \
--body "Automated weekly update of locale files from mozilla-central." \
--label l10n || true
# GITHUB_TOKEN-initiated pushes/PRs don't trigger other workflows.
# Explicitly dispatch them so CI runs on the update-locales branch.
for workflow in ci.yml lint.yml codeql.yml; do
gh workflow run "$workflow" --ref update-locales
done