-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.73 KB
/
render-readme.yaml
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
# yamllint disable rule:comments
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Render Readme"
'on': workflow_call
concurrency:
group: render-readme
cancel-in-progress: true
jobs:
render-readme:
name: Render README
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
id: generate-token
with:
app_id: "${{ secrets.BOT_APP_ID }}"
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: "${{ steps.generate-token.outputs.token }}"
- name: Setup Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
- name: Install Python Requirements
run: |
pip install -r ./.github/scripts/requirements.txt && pip freeze
- name: Render README
env:
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}"
run: |
python ./.github/scripts/render-readme.py
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
with:
commit_message: "docs: render README.md"
file_pattern: "README.md"
commit_user_name: "RoboDexo2000[bot]"
commit_user_email: "150604236+RoboDexo2000[bot]@users.noreply.github.com"
commit_author: "RoboDexo2000 <150604236+RoboDexo2000[bot]@users.noreply.github.com>"
# yamllint enable rule:comments