-
Notifications
You must be signed in to change notification settings - Fork 23
64 lines (53 loc) · 1.7 KB
/
update_docs.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
57
58
59
60
61
62
63
64
# This will attempt to retrieve and add/update documentation
name: update_docs
on:
workflow_dispatch:
schedule:
- cron: "0 5 * * *" # Run everyday at 05:00
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
jobs:
# job prepare sets everything up
update-docs:
# The type of runner that the job will run on
runs-on: ubuntu-latest
continue-on-error: true
# Most scripts will be run from the stubs repo, set that as default
defaults:
run:
shell: bash
working-directory: ${{github.workspace}}
# /micropython-stubs
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
######################################
# Check out repo:
# josverl/micropython-stubs
######################################
- name: Checkout stubs repo
uses: actions/checkout@v4
# with:
# repository: josverl/micropython-stubs
# path: micropython-stubs
# make Python work
- name: Set up Python
uses: actions/setup-python@v5
# with:
# python-version: 3.9
# cache: "pip"
- name: Install Python dependencies (doc only)
working-directory: ${{github.workspace}}
run: |
pip install --upgrade wheel
pip install -r docs/requirements.txt
######################################
# This is where the actual work starts
######################################
- name: Update Documentation
working-directory: ${{github.workspace}}/docs
run: |
python update_docs.py
- name: commit
uses: ./.github/actions/commit
with:
message: "Update stubs documentation"