Add new format.
All checks were successful
Hugo Publish CI / build-and-deploy (push) Successful in 12s
All checks were successful
Hugo Publish CI / build-and-deploy (push) Successful in 12s
This commit is contained in:
parent
248138f653
commit
d96148c395
@ -30,7 +30,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
SHORT_COMMIT=$(git rev-parse --short HEAD)
|
SHORT_COMMIT=$(git rev-parse --short HEAD)
|
||||||
COMMIT_URL="https://git.ericxliu.me/eric/ericxliu-me/commit/$SHORT_COMMIT"
|
COMMIT_URL="https://git.ericxliu.me/eric/ericxliu-me/commit/$SHORT_COMMIT"
|
||||||
find ./public -type f -exec sed -i "s|\[commit\]|<a href=\"$COMMIT_URL\">$SHORT_COMMIT</a>|g" {} +
|
find ./public -type f -exec sed -i "s|\[commit\]|<a href=\"$COMMIT_URL\">\[$SHORT_COMMIT\]</a>|g" {} +
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v4
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
|
Loading…
Reference in New Issue
Block a user