Update mikrotik_patch_7.yml

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif 2024-11-29 10:50:39 +08:00 committed by GitHub
parent 23a853d585
commit bd097583eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -388,9 +388,10 @@ jobs:
sudo -E lftp -u ${{ secrets.SSH_USERNAME }},'${{ secrets.SSH_PASSWORD }}' sftp://${{ secrets.SSH_SERVER }}:${{ secrets.SSH_PORT }} <<EOF
set sftp:auto-confirm yes
mirror --reverse --verbose --only-newer ./publish ${{ secrets.SSH_DIRECTORY }}
chown -R 32768:32768 ${{ secrets.SSH_DIRECTORY }}
bye
EOF
sudo apt-get install ssh sshpass
sshpass -p "${{ secrets.SSH_PASSWORD }}" ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_SERVER }} "chown -R 32768:32768 ${{ secrets.SSH_DIRECTORY }}"
- name: Clear Cloudflare cache
if: steps.get_latest.outputs.has_new_version == 'true'