Skip to content

Create project folder and setup automation to update project #1

Create project folder and setup automation to update project

Create project folder and setup automation to update project #1

name: Update Homepage
on:
push:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Generate Homepage
run: |
echo "# Skunkwork Projects Showcase" > index.md
echo "## Projects" >> index.md
for file in projects/*.md; do
title=$(grep -m 1 '^title:' $file | cut -d '"' -f 2)
status=$(grep -m 1 '^status:' $file | cut -d '"' -f 2)
echo "- [$title]($file) - **Status: $status**" >> index.md
done
- name: Commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add index.md
git commit -m "Automatically update homepage"
git push