Skip to content

Commit 222cff5

Browse files
committed
Add footer.
1 parent c3380b5 commit 222cff5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ jobs:
3131
uses: actions/checkout@v4
3232
- name: Setup Pages
3333
uses: actions/configure-pages@v4
34+
- name: Add footer to README
35+
run: |
36+
echo "" >> README.md
37+
echo "---" >> README.md
38+
echo "" >> README.md
39+
TIMESTAMP=$(date -u '+%Y-%m-%d %H:%M:%S UTC')
40+
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
41+
echo "*Last updated: $TIMESTAMP | [${SHORT_SHA}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})*" >> README.md
3442
- name: Upload artifact
3543
uses: actions/upload-pages-artifact@v3
3644
with:

0 commit comments

Comments
 (0)