-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (37 loc) · 1.27 KB
/
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
name: docs
on:
schedule:
- cron: "0 3 * * 1-5" # At 03:00 on every day-of-week from Monday through Friday.
workflow_dispatch: {}
jobs:
docs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: scripts/module-library
env:
OUTPUT_PATH: ${{ github.workspace }}/docs/module-library.md
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.12.0
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Python script
run: ./module-library.py -t template.md -o "$OUTPUT_PATH"
- name: Create PR
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38
with:
branch: docs-update-module-library
add-paths: ${{ env.OUTPUT_PATH }}
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit-message: "docs: update module library"
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
base: main
title: "docs: update module library"
body: ""