build: skip waiting for formality check on bot PRs

Automated translation updates from Weblate and dependency bumps from
Dependabot do not trigger the formality webhook [1].

Consequently, the build workflow hangs indefinitely
on the 'Wait for FormalityCheck' step and
subsequently fails/times out.

- Let's skip it entirely for weblate PRs and do not build packages with
new translations as we discussed it and we don't need it currently

- Allow building packages for other bots as Dependabot, Copilot,
because sometimes they can introduce breaking changes and we
need to know, if it does not break CI/CD stuff.

[1] 31112ca8c0/cloudflare-worker/src/index.js (L129)

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
pull/8826/head
Josef Schlehofer 2026-07-08 20:33:45 +02:00 committed by Hannu Nyman
parent 25b3d5b990
commit ff1486806f
1 changed files with 5 additions and 0 deletions

View File

@ -10,9 +10,14 @@ permissions:
jobs:
wait-for-formalities:
name: Wait for FormalityCheck
if: github.event.pull_request.user.login != 'weblate'
runs-on: ubuntu-slim
steps:
- name: Wait for Check Run
if: |
github.event.pull_request.user.login != 'dependabot[bot]' &&
github.event.pull_request.user.login != 'Copilot' &&
github.event.pull_request.user.type != 'Bot'
uses: lewagon/wait-on-check-action@v1.8.0
with:
ref: ${{ github.event.pull_request.head.sha }}