diff --git a/.github/workflows/neocities.yml b/.github/workflows/neocities.yml
index ec10050..61339d6 100644
--- a/.github/workflows/neocities.yml
+++ b/.github/workflows/neocities.yml
@@ -24,15 +24,11 @@ jobs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- uses: actions/checkout@v4
- - name: generate posts.html
- run: |
- ls -la ${{ github.workspace }}
- run: |
cd ${{ github.workspace }}
echo "
" > public/posts.html
- ./compile.sh
+ ./compile.sh >> $GITHUB_OUTPUT
- run: |
-
echo "${{ steps.matrix.outputs.value }}"
build:
needs: [ prep_array ]
diff --git a/compile.sh b/compile.sh
index dce2677..73df06e 100755
--- a/compile.sh
+++ b/compile.sh
@@ -2,12 +2,9 @@
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