-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (29 loc) · 1.06 KB
/
controller-build.yaml
File metadata and controls
32 lines (29 loc) · 1.06 KB
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
30
31
32
name: controller-build
on:
pull_request_target:
types: [ closed ]
branches: [ master ]
paths:
- workshop.json
- .github/workflows/controller-build.yaml
workflow_dispatch:
jobs:
dispatch:
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Generate app token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID__CRUCIBLE_WORKFLOW_DISPATCH }}
private-key: ${{ secrets.PRIVATE_KEY__CRUCIBLE_WORKFLOW_DISPATCH }}
owner: perftool-incubator
repositories: crucible
- name: Dispatch controller build
run: |
curl -s -X POST \
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/perftool-incubator/crucible/dispatches" \
-d '{"event_type":"controller-build","client_payload":{"ci_target":"CommonDataModel"}}'