ci: join server test and downstream test dispatch

This commit is contained in:
David 2024-10-27 03:43:54 +01:00
parent 54c9ee29c3
commit 8dd2d2b859
No known key found for this signature in database
GPG key ID: AB15A6AF1101390D
2 changed files with 19 additions and 22 deletions

View file

@ -1,22 +0,0 @@
name: Downstream
on:
workflow_dispatch:
jobs:
dispatch:
runs-on: "ubuntu-latest"
strategy:
matrix:
repo:
- frappe/erpnext
- frappe/lending
- frappe/hrms
steps:
- name: Dispatch Downstream CI (if supported)
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.CI_PAT }}
repository: ${{ matrix.repo }}
event-type: frappe-framework-change
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

View file

@ -78,3 +78,22 @@ jobs:
fail_ci_if_error: true
verbose: true
flags: server
dispatch:
runs-on: "ubuntu-latest"
needs: [test, migrate]
if: ${{ contains( github.event.pull_request.labels.*.name, 'trigger-downstream-ci') }}
strategy:
matrix:
repo:
- frappe/erpnext
- frappe/lending
- frappe/hrms
steps:
- name: Dispatch Downstream CI (if supported)
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.CI_PAT }}
repository: ${{ matrix.repo }}
event-type: frappe-framework-change
client-payload: '{"frappe_sha": "${{ github.sha }}"}'