Skip to content

Commit

Permalink
Save commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Prasanna Anbazhagan authored and Prasanna Anbazhagan committed Feb 3, 2025
1 parent f7e185e commit 5d4550e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/update-home-page.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,16 @@ jobs:
contributors=$(grep '^ - ' $file | cut -d '"' -f 2 | paste -sd ', ' -)
tech=$(grep -A 1 '^technology:' $file | tail -n +2 | grep -v '^---' | sed 's/ - //g' | paste -sd ', ' -)
tags=$(grep -A 1 '^tags:' $file | tail -n +2 | grep -v '^---' | sed 's/ - //g' | paste -sd ', ' -)
echo "| [$title]($file) | $description | $status | $contributors | $tech | $tags |" >> index.md
if [[ $status == "Completed" ]]; then
status_icon="✅"
elif [[ $status == "Ongoing" ]]; then
status_icon="🟡"
elif [[ $status == "Abandoned" ]]; then
status_icon="❌"
else
status_icon=$status
fi
echo "| [$title]($file) | $description | $status_icon | $contributors | $tech | $tags |" >> index.md
done
echo "[Add a New Project](https://github.com/[your-username]/hobby-projects/new/main/projects)" >> index.md
- name: Commit changes
Expand Down

0 comments on commit 5d4550e

Please sign in to comment.