]> git.99rst.org Git - openwrt-packages.git/commitdiff
ci: trigger build on pull_request and wait for FormalityCheck
authorJosef Schlehofer <redacted>
Mon, 29 Jun 2026 10:54:31 +0000 (12:54 +0200)
committerJosef Schlehofer <redacted>
Tue, 30 Jun 2026 11:33:46 +0000 (13:33 +0200)
- 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 <redacted>
.github/workflows/multi-arch-test-build.yml

index c4eb776ab2277c2b6c35d1a2c14e47d4dddf7341..4abbc72768bd82e8e97a3b88369cc124cd16297a 100644 (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
git clone https://git.99rst.org/PROJECT