在部署脚本中添加 -n 选项以避免 sudo 密码提示
Some checks failed
Build and Deploy Qingshuige / build-deploy (push) Failing after 1s
Some checks failed
Build and Deploy Qingshuige / build-deploy (push) Failing after 1s
This commit is contained in:
@@ -31,5 +31,5 @@ jobs:
|
||||
run: |
|
||||
cd repo
|
||||
TARGET_DIR=/www/wwwroot/qingshuige.ink
|
||||
sudo mkdir -p $TARGET_DIR
|
||||
sudo rsync -av --delete public/ $TARGET_DIR/
|
||||
sudo -n mkdir -p $TARGET_DIR
|
||||
sudo -n rsync -av --delete public/ $TARGET_DIR/
|
||||
|
||||
Reference in New Issue
Block a user