-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.16 KB
/
main.yml
File metadata and controls
51 lines (45 loc) · 1.16 KB
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
48
49
50
51
name: Update CSV
on:
push:
branches: [ "main" ]
paths-ignore:
- '**/*.yml'
pull_request:
branches: [ "main" ]
paths-ignore:
- '**/*.yml'
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install gitpython
- name: Run Python scripts
run: |
python README.py changed
- name: Check for README changes
run: |
git config --global user.name 'zzzz955'
git config --global user.email 'zzzzz955@gmail.com'
# md 파일만 스테이징
if ls README.md 1> /dev/null 2>&1; then
git add README.md
fi
# 스테이징된 변경사항이 있는지 확인
if [[ -n $(git diff --staged) ]]; then
git commit -m "Update README.md file"
git push
else
echo "No changes in README.md files"
fi