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 d1385cd commit 3f6c589
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/update-home-page.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
run: |
echo "# SkunkWorks" > index.md
echo "## Projects" >> index.md
echo "| Project Name | Description | Status | Contributors | Technology | Screenshots | Tags |" >> index.md
echo "|--------------|-------------|--------|--------------|------------|-------------|------|" >> index.md
for file in projects/*.md; do
if [[ $file == "projects/_template.md" ]]; then
continue
Expand All @@ -24,18 +26,8 @@ jobs:
tech=$(grep -A 1 '^technology:' $file | tail -n +2 | grep -v '^---' | sed 's/ - //g' | paste -sd ', ' -)
screenshots=$(grep -A 1 '^screenshots:' $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)" >> index.md
echo "**Status:** $status" >> index.md
echo "**Description:** $description" >> index.md
echo "**Contributors:** $contributors" >> index.md
echo "**Technology:** $tech" >> index.md
echo "**Screenshots:**" >> index.md
for screenshot in $screenshots; do
echo "![]($screenshot)" >> index.md
done
echo "**Tags:** $tags" >> index.md
echo "" >> index.md
echo "---" >> index.md
screenshots_md=$(echo $screenshots | sed 's/ /<br>![](/g' | sed 's/^/![](/' | sed 's/$/)/')
echo "| [$title]($file) | $description | $status | $contributors | $tech | $screenshots_md | $tags |" >> index.md
done
- name: Commit changes
run: |
Expand Down

0 comments on commit 3f6c589

Please sign in to comment.