Skip to content

fix

fix #78

Workflow file for this run

name: Generate
on:
push:
branches:
- main
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
#- uses: tibdex/github-app-token@v2
# id: create_token
# with:
# app_id: ${{ secrets.APP_ID }}
# private_key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Generate README.md
run: |
python toml2md.py
- name: Commit and push
run: |
git config --local user.name 'github-actions[bot]'
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
git diff
git fetch origin
git add -f README.md README-ja.md
git commit -m 'generate README.md'
git push -f
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}