Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/cdm-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
.github/rulesets/**
.github/workflows/run-crucible-tracking.yaml
.github/workflows/crucible-ci.yaml
.github/workflows/controller-build.yaml
.github/workflows/cdm-ci.yaml
docs/**
- name: Display changes
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/controller-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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"}}'
1 change: 1 addition & 0 deletions .github/workflows/crucible-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
.github/rulesets/**
.github/workflows/run-crucible-tracking.yaml
.github/workflows/crucible-ci.yaml
.github/workflows/controller-build.yaml
.github/workflows/cdm-ci.yaml
docs/**
- name: Display changes
Expand Down
Loading