-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (48 loc) · 2.63 KB
/
sim.yml
File metadata and controls
58 lines (48 loc) · 2.63 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Run Scripts
on:
workflow_dispatch:
inputs:
doubleml-py-branch:
description: 'Branch in https://github.com/DoubleML/doubleml-for-py'
required: true
default: 'main'
jobs:
trigger-did-scripts:
runs-on: ubuntu-latest
steps:
- name: Trigger DID Scripts Workflows
run: |
RESPONSE=$(curl -s -o response.txt -w "%{http_code}" -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
https://api.github.com/repos/${{ github.repository }}/dispatches \
-d '{"event_type": "run-did-scripts", "client_payload": { "doubleml_py_branch": "${{ github.event.inputs.doubleml-py-branch }}", "target_branch": "${{ github.ref_name }}"}}')
echo "HTTP Status: $RESPONSE"
cat response.txt
- name: Trigger IRM Scripts Workflows
run: |
RESPONSE=$(curl -s -o response.txt -w "%{http_code}" -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
https://api.github.com/repos/${{ github.repository }}/dispatches \
-d '{"event_type": "run-irm-scripts", "client_payload": { "doubleml_py_branch": "${{ github.event.inputs.doubleml-py-branch }}", "target_branch": "${{ github.ref_name }}"}}')
echo "HTTP Status: $RESPONSE"
cat response.txt
- name: Trigger PLM Scripts Workflows
run: |
RESPONSE=$(curl -s -o response.txt -w "%{http_code}" -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
https://api.github.com/repos/${{ github.repository }}/dispatches \
-d '{"event_type": "run-plm-scripts", "client_payload": { "doubleml_py_branch": "${{ github.event.inputs.doubleml-py-branch }}", "target_branch": "${{ github.ref_name }}"}}')
echo "HTTP Status: $RESPONSE"
cat response.txt
- name: Trigger RDD Scripts Workflows
run: |
RESPONSE=$(curl -s -o response.txt -w "%{http_code}" -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
https://api.github.com/repos/${{ github.repository }}/dispatches \
-d '{"event_type": "run-rdd-scripts", "client_payload": { "doubleml_py_branch": "${{ github.event.inputs.doubleml-py-branch }}", "target_branch": "${{ github.ref_name }}"}}')
echo "HTTP Status: $RESPONSE"
cat response.txt