GITBOOK-148: No subject #38
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
name: Update README with SUMMARY | |
on: | |
push: | |
paths: | |
- "developLog/SUMMARY.md" # SUMMARY.md νμΌμ΄ λ³κ²½λ λλ§λ€ νΈλ¦¬κ±° | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITBOOKKEY }} | |
fetch-depth: 0 | |
- name: Update README with SUMMARY content | |
run: | | |
# κΈ°μ‘΄ README λ΄μ©μ λ°±μ | |
cp README.md README_backup.md | |
# SUMMARY.mdμ λ§ν¬λ€μ 'developLog/'λ₯Ό μΆκ° | |
sed -i 's/](programming-lanuage/](developLog\/programming-lanuage/g' developLog/SUMMARY.md | |
sed -i 's/](spring/](developLog\/spring/g' developLog/SUMMARY.md | |
sed -i 's/](algorithm-datastructure/](developLog\/algorithm-datastructure/g' developLog/SUMMARY.md | |
sed -i 's/](book/](developLog\/book/g' developLog/SUMMARY.md | |
sed -i 's/](ci-cd/](developLog\/ci-cd/g' developLog/SUMMARY.md | |
sed -i 's/](cs/](developLog\/cs/g' developLog/SUMMARY.md | |
sed -i 's/](ex/](developLog\/ex/g' developLog/SUMMARY.md | |
sed -i 's/](memoir/](developLog\/memoir/g' developLog/SUMMARY.md | |
sed -i 's/](tip-bookmark/](developLog\/tip-bookmark/g' developLog/SUMMARY.md | |
sed -i 's/](backend/](developLog\/backend/g' developLog/SUMMARY.md | |
sed -i 's/](trouble-shoting/](developLog\/trouble-shoting/g' developLog/SUMMARY.md | |
# νμν λ€λ₯Έ κ²½λ‘λ€μ λν΄μλ μμ κ°μ΄ 'sed' λͺ λ Ήμ΄λ₯Ό μ¬μ©νμ¬ 'developLog/'λ₯Ό μΆκ°ν μ μλ€. | |
# κΈ°μ‘΄ README λ΄μ©μ μ§μ°κ³ SUMMARY λ΄μ©μΌλ‘ κ΅μ²΄ | |
cp developLog/SUMMARY.md README.md | |
# README νμΌμ μ»€λ° | |
- name: Commit changes | |
run: | | |
git add README.md | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
git commit -m "Update README with updated SUMMARY.md content" | |
git push https://${{ secrets.GITBOOKKEY }}@github.com/GoldenPearls/gitBook.git | |