misc: move dependency to assets folder

This commit is contained in:
KOWX712
2025-05-05 01:13:33 +08:00
parent 770f107559
commit 59a74e8ee2
10 changed files with 126 additions and 48 deletions

View File

@@ -26,13 +26,13 @@ jobs:
- name: Update dependency
run: |
curl -Ls https://cdn.jsdelivr.net/npm/marked/marked.min.js > module/webui/scripts/marked.min.js
curl -Ls https://cdn.jsdelivr.net/npm/marked/marked.min.js > module/webui/scripts/assets/marked.min.js
# Commit if found changes
if ! git diff --exit-code module/webui/scripts/marked.min.js > /dev/null; then
if ! git diff --exit-code module/webui/scripts/assets/marked.min.js > /dev/null; then
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add module/webui/scripts/marked.min.js
git add module/webui/scripts/assets/marked.min.js
git commit -m "deps: update marked.min.js"
git push
fi