Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change nodejs verions to 18 #30

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:12-buster-slim
FROM node:18-buster-slim

LABEL version="1.0.3"
LABEL repository="https://github.com/sma11black/hexo-action"
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Hexo Action'
name: 'Hexo Action 2'
description: 'Hexo CI/CD action for automating deployment.'
author: 'sma11black'
inputs:
Expand Down Expand Up @@ -31,4 +31,4 @@ runs:
- ${{ inputs.commit_msg }}
branding:
icon: 'package'
color: 'blue'
color: 'blue'
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts
git config --global user.name "$INPUT_USER_NAME"
git config --global user.email "$INPUT_USER_EMAIL"


# install hexo env
npm install hexo-cli -g
npm install hexo-deployer-git --save


# deployment
if [ "$INPUT_COMMIT_MSG" = "none" ]
then
Expand All @@ -30,4 +32,4 @@ else
hexo g -d -m "$INPUT_COMMIT_MSG"
fi

echo ::set-output name=notify::"Deploy complate."
echo ::set-output name=notify::"Deploy complate."