-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 872 Bytes
/
python-package.yml
File metadata and controls
42 lines (33 loc) · 872 Bytes
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
# // .github/workflows/update-readme.yml
name: Update readme
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Run update.py
run: |
python update.py
- name: Commit changes
run: |
git config --global user.name "Ori-Gui"
git config --global user.email "dign552@naver.com"
git add README.md
git diff --cached --quiet || git commit -m "auto update README.md"
- name: Push changes
run: |
git push