-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.04 KB
/
update_index.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
name: Update Index
on:
push:
branches:
- gh-pages
jobs:
update:
runs-on: ubuntu-latest
env:
python_ver: 3.13
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ env.python_ver }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.python_ver }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./.github/ci/requirements.txt
- name: Update Index
id: update-index
run: |
cd .github
cd ci
python index_updater.py
- name: Commit Changes
if: ${{ always() && steps.update-index.outcome == 'success' }}
run: |
git fetch
git add .
git -c user.name="github-actions[bot]" -c user.email="41898282+github-actions[bot]@users.noreply.github.com" commit -m "Auto update docs" --author="cibere <[email protected]>" --allow-empty
git push