generated from just-the-docs/just-the-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.64 KB
/
update_readme.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
name: Update README file
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
resources:
name: Update resources
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Restore Timestamps
uses: chetan/git-restore-mtime-action@v1
- name: Set Timezone
uses: szenius/[email protected]
with:
timezoneLinux: "America/Los_Angeles"
# timezoneWindows: "Pacific Standard Time"
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Dependencies
run: pip install -r requirements.txt
shell: bash
- name: Update chart
id: update_chart
run: python ./_doc_builder/contribute_image.py
shell: bash
- name: Update readme
id: update_readme
run: python ./_doc_builder/update_readme.py
shell: bash
- name: Update resources
uses: test-room-7/action-update-file@v1
with:
file-path: README.md
commit-msg: Update README.md
github-token: ${{ secrets.GITHUB_TOKEN }}