Skip to content

deps(github-actions): update actions/setup-python action ( v5.2.0 → v5.3.0 ) #208

deps(github-actions): update actions/setup-python action ( v5.2.0 → v5.3.0 )

deps(github-actions): update actions/setup-python action ( v5.2.0 → v5.3.0 ) #208

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: README Generator
on:
workflow_dispatch: {}
push:
branches: ["main"]
pull_request:
paths:
- ".github/workflows/readme-generator.yaml"
- ".github/scripts/README_template.j2"
- ".github/scripts/readme-generator.py"
- "Dockerfile"
- "requirements.txt"
jobs:
generate-readme:
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
id: app-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: "${{ steps.app-token.outputs.token }}"
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.12"
- name: Install dependencies
run: pip install Jinja2
- name: Generate README
working-directory: .github/scripts
run: python3 readme-generator.py
- name: Show changes
run: cat README.md
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5
if: "${{ github.event_name == 'push' }}"
with:
commit_message: "[bot] Update README"
file_pattern: "README.md"
branch: ${{ github.ref }}