Skip to content

Commit

Permalink
Update w4h-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zli86605 authored Jul 2, 2024
1 parent 5c403a2 commit 4525581
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/w4h-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,18 @@ jobs:
- name: Convert Markdown to HTML
run: |
mkdir -p html
find . -name '*.md' | while read -r file; do
for file in $(find . -name '*.md'); do
htmlfile="html/${file%.md}.html"
pandoc "$file" -o "$htmlfile" && echo "Converted $file to $htmlfile"
echo "Converting $file to $htmlfile"
pandoc "$file" -o "$htmlfile"
if [ $? -eq 0 ]; then
echo "Successfully converted $file"
else
echo "Failed to convert $file"
fi
done
- name: Commit HTML files
if: success()
run: |
git config --local user.name 'github-actions[bot]'
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
Expand Down

0 comments on commit 4525581

Please sign in to comment.