forked from IsshikiHugh/zju-cs-asio
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 858 Bytes
/
main.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
name: Render README.md
on:
push:
paths:
- 'data.csv'
- '.github/workflows/render_readme.yml'
- 'scripts/asio_helper.py'
jobs:
render:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- name: setup Python
uses: actions/setup-python@v3.1.0
with:
python-version: 3.9
- name: render README.md
run: |
python scripts/asio_helper.py -r
- name: commit changes
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Action"
git add .
git diff-index --quiet HEAD || git commit -m "chore: render README.md"
- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.ref }}