-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 1 KB
/
update.yml
File metadata and controls
41 lines (34 loc) · 1 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
name: Python application
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # ✅ Push 권한을 위해 필요
steps:
- name: Checkout the repository
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }} # ✅ 자동 제공 토큰 사용
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Run code
run: |
cd workbook
python actions.py
- name: Commit and Push Changes
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add workbook/
git commit -m "Auto-generate workbook for branch ${{ github.ref_name }}" || echo "No changes to commit"
git push origin HEAD