empty
This commit is contained in:
6
.github/workflows/neocities.yml
vendored
6
.github/workflows/neocities.yml
vendored
@@ -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 ]
|
||||||
|
@@ -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
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user