forked from jwulf/camunda-cloud-test-drive
-
Notifications
You must be signed in to change notification settings - Fork 0
24 lines (21 loc) · 920 Bytes
/
restock-shop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Restock Shop
on: [repository_dispatch]
jobs:
restock_shop:
if: github.event.action == 'restock_shop'
runs-on: ubuntu-latest
steps:
- name: Get unique id for message correlation
id: date
run: echo "::set-output name=date::$(date)"
- name: Get Product List
id: product-list
uses: jwulf/camunda-cloud-demo-data-action@master
- name: Execute Demo Workflow "Restock Shop"
uses: jwulf/zeebe-action@master
with:
clientConfig: ${{ secrets.ZEEBE_CLIENT_CONFIG }}
operation: createWorkflowInstanceWithResult
bpmnProcessId: populate-stock
requestTimeoutSeconds: 300
variables: '{"_id":"${{steps.date.outputs.date}}","repo":"${{github.repository}}","stock_level":"2","authorization":"Bearer {{GitHubToken}}", "products": ${{steps.product-list.outputs.products}} ,"event_type":"restock_item"}'