From bd3a6c371df2c8cc75a1e5024bf2ae5723fb981e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ge=CF=85=D0=BCj=CF=85=20lee?= <97003348+GoldenPearls@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:23:45 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=A4=ED=96=89=EB=90=98=EB=8F=84=20?= =?UTF-8?q?=EC=95=88=EB=B0=94=EB=80=8C=EB=8A=94=20=EC=9D=B4=EC=9C=A0?= =?UTF-8?q?=EB=8A=94=20=EB=AD=90=EB=83=90=20=EC=95=84=EA=B9=8C=20=EB=90=90?= =?UTF-8?q?=EC=9E=96=EC=95=84!!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/Rename and Commit Markdown Files.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Rename and Commit Markdown Files.yml b/.github/workflows/Rename and Commit Markdown Files.yml index 913dcfb..9863c3b 100644 --- a/.github/workflows/Rename and Commit Markdown Files.yml +++ b/.github/workflows/Rename and Commit Markdown Files.yml @@ -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 "prettylee620@naver.com" - 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 브랜치로 푸시