ci: join server test and downstream test dispatch
This commit is contained in:
parent
54c9ee29c3
commit
8dd2d2b859
2 changed files with 19 additions and 22 deletions
22
.github/workflows/downstream.yml
vendored
22
.github/workflows/downstream.yml
vendored
|
|
@ -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 }}"}'
|
||||
19
.github/workflows/server-tests.yml
vendored
19
.github/workflows/server-tests.yml
vendored
|
|
@ -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 }}"}'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue