-
Notifications
You must be signed in to change notification settings - Fork 35
32 lines (31 loc) · 1.09 KB
/
run-inside.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
25
26
27
28
29
30
31
32
name: Inside Tests
on:
push:
branches:
- stage
- main
pull_request:
types: [opened, synchronize, reopened, edited]
branches:
- stage
- main
jobs:
trigger-circleci:
name: Trigger CircleCI Job
runs-on: [self-hosted, Linux, X64]
steps:
- name: Trigger CircleCI Job
run: |
curl -X POST 'https://circle.ci.adobe.com/api/v2/project/gh/wcms/Platform-UI-DC/pipeline' \
-H 'Circle-Token: ${{ secrets.CCI_TOKEN }}' \
-H 'content-type: application/json' \
-d "{\"branch\":\"main\", \
\"parameters\":{ \
\"env\":\"live\", \
\"dcbranch\":\"${{ github.head_ref || github.ref_name }}\" \
} \
}"
- name: Trigger Jenkins Job
run: |
curl -X POST 'https://dcx.ci.corp.adobe.com/job/DC%20Release%20-%20Run%20Nala/buildWithParameters?token=${{ secrets.JNK_JOB_TOKEN }}&branch=${{ github.head_ref || github.ref_name }}' \
-u '${{ secrets.JNK_USER }}:${{ secrets.JNK_API_TOKEN }}'