This commit is contained in:
2025-04-25 22:09:46 +02:00
parent 7d43f45170
commit ac31c08bca
2 changed files with 1 additions and 8 deletions

View File

@@ -24,15 +24,11 @@ jobs:
matrix: ${{ steps.matrix.outputs.value }} matrix: ${{ steps.matrix.outputs.value }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: generate posts.html
run: |
ls -la ${{ github.workspace }}
- run: | - run: |
cd ${{ github.workspace }} cd ${{ github.workspace }}
echo "<ul class=posts>" > public/posts.html echo "<ul class=posts>" > public/posts.html
./compile.sh ./compile.sh >> $GITHUB_OUTPUT
- run: | - run: |
echo "${{ steps.matrix.outputs.value }}" echo "${{ steps.matrix.outputs.value }}"
build: build:
needs: [ prep_array ] needs: [ prep_array ]

View File

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