From d618a2bc7ebe550cfcef31df8ddd0c8a12cf6bf1 Mon Sep 17 00:00:00 2001 From: calixteman Date: Fri, 6 Mar 2026 14:51:37 +0100 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/prefs_tests.yml | 2 +- .github/workflows/types_tests.yml | 2 +- .github/workflows/update_locales.yml | 6 ++++++ 7 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e306ae5dd..4150a32a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ name: CI -on: [push, pull_request] +on: [push, pull_request, workflow_dispatch] permissions: contents: read diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 26d7b1210..919ff766b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,5 +1,5 @@ name: CodeQL -on: [push, pull_request] +on: [push, pull_request, workflow_dispatch] permissions: contents: read diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index fc62d72fa..79df744d4 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,5 +1,5 @@ name: Code Coverage -on: [push, pull_request] +on: [push, pull_request, workflow_dispatch] permissions: contents: read diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 94e849728..d601d40c5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,5 @@ name: Lint -on: [push, pull_request] +on: [push, pull_request, workflow_dispatch] permissions: contents: read diff --git a/.github/workflows/prefs_tests.yml b/.github/workflows/prefs_tests.yml index b439dbf5c..2edbf1529 100644 --- a/.github/workflows/prefs_tests.yml +++ b/.github/workflows/prefs_tests.yml @@ -1,5 +1,5 @@ name: Prefs tests -on: [push, pull_request] +on: [push, pull_request, workflow_dispatch] permissions: contents: read diff --git a/.github/workflows/types_tests.yml b/.github/workflows/types_tests.yml index 15bb3d25d..d569b1b02 100644 --- a/.github/workflows/types_tests.yml +++ b/.github/workflows/types_tests.yml @@ -1,5 +1,5 @@ name: Types tests -on: [push, pull_request] +on: [push, pull_request, workflow_dispatch] permissions: contents: read diff --git a/.github/workflows/update_locales.yml b/.github/workflows/update_locales.yml index f6f22b546..36e768354 100644 --- a/.github/workflows/update_locales.yml +++ b/.github/workflows/update_locales.yml @@ -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