Files
luci/.github/workflows/build.yml
T
Josef Schlehofer ff1486806f 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] https://github.com/openwrt/openwrt-bot-worker/blob/31112ca8c0c60e64c002eef72137d6c085efa9f2/cloudflare-worker/src/index.js#L129

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-07-15 09:00:58 +03:00

33 lines
946 B
YAML

name: Test Build
on:
pull_request:
permissions:
contents: read
checks: read
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 }}
check-name: 'FormalityCheck / Git & Commits'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 5
build:
needs: wait-for-formalities
uses: openwrt/actions-shared-workflows/.github/workflows/multi-arch-test-build.yml@main
with:
matrix: '{"include": [{"arch": "x86_64", "target": "x86-64"}]}'