ci: trigger build on pull_request and wait for FormalityCheck

- Change trigger back to pull_request to ensure it runs correctly on fork PRs
- Add a wait-for-formalities job that polls the GITHUB_TOKEN for FormalityCheck status
- Execute the feeds package test build only when the formalities check succeeds

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(cherry picked from commit b73e173d4d)
This commit is contained in:
Josef Schlehofer committed 2026-06-30 18:00:45 +02:00
1 parent ef0ef18f57
commit bf2a2b39fd
1 file changed
+15 -3
+15 -3
View File
@@ -1,15 +1,27 @@
name: Test and Build
on:
check_suite:
types: [completed]
pull_request:
permissions:
contents: read
pull-requests: write
checks: read
jobs:
wait-for-formalities:
name: Wait for FormalityCheck
runs-on: ubuntu-slim
steps:
- name: Wait for Check Run
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:
name: Feeds Package Test Build
if: ${{ github.event.check_suite.conclusion == 'success' }}
needs: wait-for-formalities
uses: openwrt/actions-shared-workflows/.github/workflows/multi-arch-test-build.yml@main