-
Notifications
You must be signed in to change notification settings - Fork 57
54 lines (47 loc) · 1.46 KB
/
update-intakes-documentation.yaml
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
name: Update intakes documentation
on:
workflow_dispatch:
repository_dispatch:
types: [rebuild-intake-documentation]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout `documentation` repository under `main/`
uses: actions/checkout@v4
with:
path: main
- name: Checkout `intake-formats` repository under `intakes/`
uses: actions/checkout@v4
with:
repository: SEKOIA-IO/intake-formats
path: intakes
- name: Setup Python
uses: actions/setup-python@v4
id: setup-python
with:
python-version: '3.11'
- name: Install Poetry
run: |
pip install poetry
poetry config virtualenvs.in-project true
- name: Install dependencies
run: |
poetry install
working-directory: ./main/scripts/update_mkdocs
- name: Refresh intakes documentation
run: |
rm -rf ../../_shared_content/operations_center/integrations/generated/*.md
poetry run python update_mkdocs.py $GITHUB_WORKSPACE/intakes $GITHUB_WORKSPACE/main
working-directory: ./main/scripts/update_mkdocs
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Refresh intakes documentation
delete-branch: true
title: Refresh intakes documentation
base: main
path: ./main
branch: update-intake-documentation
body: |
Refresh intakes documentation