Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kowyo committed Nov 1, 2024
1 parent 2083b22 commit 240dbdb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/course.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,6 @@ jobs:
curl "https://raw.githubusercontent.com/HITSZ-OpenAuto/${line}/main/README.md" -o "temp.md"
tail -n +2 "temp.md" >> "./content/docs/${semester}/${line}.md"
echo '--------wrap badges---------'
python scripts/wrap_badges.py "./content/docs/${semester}/${line}.md"
echo '--------wrap finished---------'
echo >> "./content/docs/${semester}/${line}.md"
echo "## 资料下载" >> "./content/docs/${semester}/${line}.md"
echo >> "./content/docs/${semester}/${line}.md"
Expand Down Expand Up @@ -299,6 +295,10 @@ jobs:
run: |
python scripts/gen_news.py
- name: Wrap badges
run: |
sh wrap.sh
- name: AutoCorrect
uses: huacnlee/autocorrect-action@v2
with:
Expand Down
8 changes: 8 additions & 0 deletions wrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# for every .md file in the content directory and its subdirectories, run the wrap.py script

# find all .md files in the content directory and its subdirectories
for file in $(find content -name "*.md")
do
# run the wrap.py script on each file
python scripts/wrap_badges.py $file
done

0 comments on commit 240dbdb

Please sign in to comment.