-
Notifications
You must be signed in to change notification settings - Fork 66
29 lines (27 loc) · 902 Bytes
/
dispatch.yml
File metadata and controls
29 lines (27 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Dispatch
on:
push:
branches:
- master
# types: [closed]
jobs:
dispatch:
#if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
strategy:
matrix:
repo: ['ome/ome_zarr_test_suite']
env:
event_dispatch: run_test_suite
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
# yamllint disable rule:line-length
- name: Dispatch event
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.ACTION_API_TOKEN }}
event-type: ${{ env.event_dispatch }}
repository: ${{ matrix.repo }}
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.event.pull_request.head.sha }}", "repo": "${{ github.repository }}", "owner": "${{github.repository_owner}}", "number": "${{github.event.number}}"}'