-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52bc28d
commit bd3a6c3
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ on: | |
branches: | ||
- main # main 브랜치에 푸시될 때 워크플로우 트리거 | ||
workflow_dispatch: # 수동으로 워크플로우를 실행할 수 있는 옵션 | ||
schedule: | ||
- cron: '17 15 * * *' # 매일 오전 10시 40분에 실행 | ||
|
||
jobs: | ||
process-markdown: | ||
|
@@ -20,6 +18,10 @@ jobs: | |
fetch-depth: 0 | ||
ref: main | ||
|
||
- name: Set UTF-8 Encoding | ||
run: | | ||
export LC_CTYPE="UTF-8" # UTF-8 인코딩을 명시적으로 설정 | ||
- name: Rename Markdown files | ||
run: | | ||
for file in developLog/*.md; do | ||
|
@@ -40,7 +42,7 @@ jobs: | |
- name: Commit changes | ||
run: | | ||
git add . | ||
git config user.email "[email protected]" | ||
git config user.name "GoldenPearls" | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
git commit -m "Rename Markdown files based on h1 titles" | ||
git push origin main # 변경사항을 main 브랜치로 푸시 | ||
git push https://${{ secrets.GH_PAT }}@github.com/GoldenPearls/gitBook.git # 변경사항을 main 브랜치로 푸시 |