diff --git a/Dockerfile b/Dockerfile index 21f5a19..3374934 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12-buster-slim +FROM node:20 LABEL version="1.0.3" LABEL repository="https://github.com/sma11black/hexo-action" @@ -12,4 +12,4 @@ RUN apt-get update > /dev/null && \ apt-get install -y git openssh-client > /dev/null ; \ chmod +x /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"] diff --git a/sync_deploy_history.js b/sync_deploy_history.js index 6a4ae93..24b71f4 100644 --- a/sync_deploy_history.js +++ b/sync_deploy_history.js @@ -4,7 +4,7 @@ const pathFn = require('path'); const fs = require('fs'); const parseConfig = require('hexo-deployer-git/lib/parse_config'); -const spawn = require('hexo-util/lib/spawn'); +const spawn = require('hexo-util/dist/spawn'); const Hexo = require('hexo'); async function sync_deploy_history() {