Files
neocities/compile.sh
2025-04-25 21:46:45 +02:00

14 lines
341 B
Bash
Executable File

#!/bin/bash
t='['
for entry in notes/*
do
echo $entry
filename=$(basename "$entry" .md)
#filename="${entry%}"
timestamp=`git log --follow --format=%ad --date=format:'%Y-%m-%d' -- $entry`
t+="{\"source\"=\"$entry\",\"dest\"=\"$filename\",\"time\"=\"$timestamp\"},"
done
echo "value=${t%?}]"
echo "value=${t%?}]" >> $GITHUB_OUTPUT