-
Notifications
You must be signed in to change notification settings - Fork 454
36 lines (34 loc) · 1.31 KB
/
generate_readme.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
name: Generate Readme
on:
push:
branches:
- master
jobs:
generate-readme:
if: "!startsWith(github.event.head_commit.message, 'generateReadme:') && !startsWith(github.event.head_commit.message, 'UpdatedAt:')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
- uses: actions/setup-python@v4
with:
python-version: '3.9'
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
- run: "pip install MarkupSafe==2.0.1"
- run: "pip install numpy==1.19.5"
- run: "pip install notebook"
- run: "pip install naas_drivers[markdown]"
- run: "pip install papermill"
- run: "pip install Markdown==3.3.7"
- run: "pip install algoliasearch==3.0.0"
- run: "jupyter nbconvert --execute generate_readme.ipynb --inplace"
- run: "jupyter nbconvert --clear-output --inplace generate_readme.ipynb"
- run: "jupyter nbconvert --execute .github/push_templates_to_algolia.ipynb --inplace"
env:
ALGOLIA_APP_ID: '${{ secrets.ALGOLIA_APP_ID }}'
ALGOLIA_API_KEY: '${{ secrets.ALGOLIA_API_KEY }}'
- run: "jupyter nbconvert --clear-output --inplace .github/push_templates_to_algolia.ipynb"
- uses: EndBug/[email protected]
with:
message: 'generateReadme: Refresh'