Skip to content

Commit 999508b

Browse files
committed
workbook 자동화
1 parent c063637 commit 999508b

File tree

9 files changed

+14
-13
lines changed

9 files changed

+14
-13
lines changed

.github/workflows/update.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,41 @@
1-
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3-
41
name: Python application
52

63
on:
74
push:
85
branches:
96
- '**'
107

11-
128
jobs:
139
build:
1410
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write # ✅ Push 권한을 위해 필요
13+
1514
steps:
16-
- uses: actions/checkout@v2
15+
- name: Checkout the repository
16+
uses: actions/checkout@v2
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }} # ✅ 자동 제공 토큰 사용
19+
1720
- name: Set up Python 3.9
1821
uses: actions/setup-python@v2
1922
with:
2023
python-version: 3.9
21-
- name: install dependencies
24+
25+
- name: Install dependencies
2226
run: |
2327
python -m pip install --upgrade pip
2428
pip install requests
25-
- name: run code
29+
30+
- name: Run code
2631
run: |
2732
cd workbook
2833
python actions.py
34+
2935
- name: Commit and Push Changes
3036
run: |
3137
git config user.name github-actions
3238
git config user.email github-actions@github.com
3339
git add workbook/
3440
git commit -m "Auto-generate workbook for branch ${{ github.ref_name }}" || echo "No changes to commit"
35-
git push
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
git push origin HEAD
File renamed without changes.
File renamed without changes.

Array/11328-Strfry.java renamed to Array/11328.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import java.io.*;
2-
import java.util.*;
32

43
public class Main {
54

File renamed without changes.
File renamed without changes.

Array/1919-에너그램만들기.java renamed to Array/1919.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import java.io.*;
2-
import java.util.*;
32

43
public class Main {
54

Array/2577-숫자의개수.java renamed to Array/2577.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import java.io.*;
2-
import java.util.*;
32

43
public class Main {
54

File renamed without changes.

0 commit comments

Comments
 (0)