mirror of
https://github.com/openwrt/packages.git
synced 2026-10-14 03:27:03 +04:00
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:
1 file changed
+15
-3
@@ -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
|
||||
Reference in new issue
Block a user