-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.16 KB
/
run_python_script.yml
File metadata and controls
39 lines (32 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
name: Run Python Script and Commit File
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
persist-credentials: false # 이 줄을 추가합니다
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Run script
run: python crawl_naver.py
- name: Commit file
run: |
git config --local user.name 'hyuna333'
git config --local user.email 'kook980316@gmail.com'
git add naver.txt
git commit -m "Add naver.txt"
- name: Push
uses: ad-m/github-push-action@master
with:
branch: "main"
github_token: ${{ secrets.C_TOKEN }} # 여기서 GH_TOKEN은 GitHub Secrets에 저장된 PAT입니다.