ci(backup): 备份步骤输出 tee 到 NAS _last-run.log(便于排障)
This commit is contained in:
@@ -20,7 +20,10 @@ jobs:
|
||||
- name: Backup pangolin1 SQLite → NAS
|
||||
env:
|
||||
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||
run: bash scripts/ci/backup-db.sh
|
||||
run: |
|
||||
mkdir -p /volume1/docker/backups/pangolin
|
||||
bash scripts/ci/backup-db.sh 2>&1 | tee /volume1/docker/backups/pangolin/_last-run.log
|
||||
exit "${PIPESTATUS[0]}"
|
||||
|
||||
- name: Notify (Telegram)
|
||||
if: always()
|
||||
|
||||
Reference in New Issue
Block a user