-
Notifications
You must be signed in to change notification settings - Fork 217
39 lines (34 loc) · 1.47 KB
/
sync-welcome-documentation-master.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
33
34
35
36
37
38
39
name: Sync Welcome Documentation - Master
on:
push:
paths:
- '**/documentation/**.md'
- '**/documentation/config.json'
branches:
- 'master'
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Fetch branch name
run: echo Running on branch ${GITHUB_REF#refs/heads/}
- name: Sync repository
run: |
curl \
-X POST \
-u "${{ secrets.SYNC_USERNAME }}:${{ secrets.SYNC_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${{ secrets.SYNC_ORGANIZATION }}/${{ secrets.SYNC_APPLICATION }}/dispatches \
-d '{"event_type":"sync-welcome-documentation", "client_payload": { "branch": "'"${GITHUB_REF#refs/heads/}"'" }}'
- name: Temporary sync commands
run: |
curl \
-X POST \
-u "${{ secrets.SYNC_USERNAME }}:${{ secrets.SYNC_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${{ secrets.SYNC_ORGANIZATION }}/${{ secrets.SYNC_APPLICATION_TWO }}/dispatches \
-d '{"event_type":"Synchronize"}'
curl \
-X POST \
-u "${{ secrets.SYNC_USERNAME }}:${{ secrets.SYNC_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${{ secrets.SYNC_ORGANIZATION }}/${{ secrets.SYNC_APPLICATION_THREE }}/dispatches \
-d '{"event_type":"Synchronize"}'