Skip to content

Commit

Permalink
fix: git push 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ddingmin committed Nov 3, 2023
1 parent d08912e commit 8bf9199
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update_readme_til.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
python script/update_readme.py
- name: Run Update README.md File
run: |
git add .
git diff
git config --local user.email "[email protected]"
git config --local user.name "ddingmin"
git commit -m ":smile Add Today I Learned"
git add README.md
git commit -m "[Bot] Add Today I Learned"
git push
4 changes: 2 additions & 2 deletions script/update_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_title_md(target_title, target_count):

def get_file_md(target_dir, target_file, ktc):
target_file_url = f"{GIT_URL}/{target_dir}/{target_file}"
return f"- [[{ktc}] {target_file}]({target_file_url})\n"
return f"- [[{ktc}] {split_extension(file)}]({target_file_url})\n"


def write_file(target, add):
Expand Down Expand Up @@ -54,7 +54,7 @@ def split_extension(file_name):

for file in files:
ktc = get_update_time_ktc(path)
readme = write_file(readme, get_file_md(dir, split_extension(file), ktc))
readme = write_file(readme, get_file_md(dir, file, ktc))

print(f"Create README\n{readme}")

Expand Down

0 comments on commit 8bf9199

Please sign in to comment.