-
-
Notifications
You must be signed in to change notification settings - Fork 567
39 lines (33 loc) · 910 Bytes
/
trigger-sync.yml
File metadata and controls
39 lines (33 loc) · 910 Bytes
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: Test and trigger downstream tutorial sync
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Checkout website repo
uses: actions/checkout@v3
with:
repository: ${{ github.repository_owner }}/eunomia.dev
ref: main
path: ./.
- uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install all
run: |
make install
- name: Test page build
run: |
mkdocs build -v
- name: Trigger sync workflow
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.PAT }}
repository: ${{ github.repository_owner }}/eunomia.dev
event-type: trigger-tutorial-sync