forked from netdata/learn
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.67 KB
/
ingest.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Ingest
on:
workflow_dispatch:
schedule:
- cron: "10 8-23/3 * * *" # every 3rd hour from 8 through 23
jobs:
ingest:
runs-on: ubuntu-latest
steps:
- name: Access Token
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Init python env
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Setup python env
run: |
pip install -r .learn_environment/ingest-requirements.txt
- name: Ingest process
run: |
python ingest/ingest.py
- name: Make integrations grids
run: |
python ingest/create_grid_integration_pages.py
- name: Update kickstart checksum
run: |
docfile="docs/installing/one-line-installer-for-all-linux-systems.mdx"
wget -O /tmp/kickstart.sh https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/kickstart.sh || exit 1
checksum="$(md5sum /tmp/kickstart.sh | cut -d ' ' -f 1)"
sed -e "s/@KICKSTART_CHECKSUM@/${checksum}/" "${docfile}" > tmp || exit 1
mv tmp "${docfile}" || exit 1
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Ingest new documentation
title: "Ingest New Documentation"
body: |
- Ingest new documentation
Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request:
branch: ingest
labels: ingest, automation
# reviewers: