-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (43 loc) · 1.27 KB
/
update-atproto.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
name: Update atproto
on:
schedule:
- cron: '0 10 * * SAT'
jobs:
run-script:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python3 -m pip install -r docs/source/requirements.txt
- name: Update atproto
run: |
git submodule update --remote atproto
find chitose -type d -mindepth 1 -maxdepth 1 -exec rm -r {} \;
python3 generate.py
cd docs
sphinx-apidoc -o ./source ../chitose -f
cd ..
- name: Add file contents
run: |
git add chitose
git add docs
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: Update atproto
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
title: Update atproto
body: ''