-
Notifications
You must be signed in to change notification settings - Fork 24
47 lines (39 loc) · 1.1 KB
/
generate.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
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: ${{ steps.create_token.outputs.token }}