Open waldoj opened 3 years ago
This generates TSV of every project and its URL slug:
echo "URL\ttitle"; egrep "^# " *.md |sed 's/.md:#/\t/'
This should generate TSV of every project and its states, but it doesn't, due to as-yet-unplumbed oddities in the regex dialect supported by sed:
egrep "\| states" *.md |sed 's/\.md:\|\sstates(\s+)\|\s/\t/'
Ah-ha, this generates TSV of every project and its states:
echo "URL\tstates"; egrep "\| states" *.md |sed 's/\.md:|[[:blank:]]*states[[:blank:]]*\|[[:blank:]]*/\t/'
I've been wondering how to execute GitHub Actions prior to pushing content out to GitHub Pages. Turns out that you need to use this GitHub Pages action as the last step.