From: Josef Schlehofer Date: Mon, 29 Jun 2026 10:54:31 +0000 (+0200) Subject: ci: trigger build on pull_request and wait for FormalityCheck X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=b73e173d4d9e0fd8b407b3d788a2e3839b560230;p=openwrt-packages.git 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 --- diff --git a/.github/workflows/multi-arch-test-build.yml b/.github/workflows/multi-arch-test-build.yml index c4eb776ab..4abbc7276 100644 --- a/.github/workflows/multi-arch-test-build.yml +++ b/.github/workflows/multi-arch-test-build.yml @@ -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