Skip to content

Update

Update #359

Workflow file for this run

name: Update
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
steps:
- if: ${{ vars.DISABLE_UPDATE == 'true' }}
run: exit 0
server:
name: Server
needs:
- checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: juliangruber/read-file-action@v1
id: script
with:
path: ./scripts/update/server.sh
- uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_SSH_HOST }}
username: ${{ secrets.SERVER_SSH_USER }}
password: ${{ secrets.SERVER_SSH_PASSWORD }}
port: ${{ secrets.SERVER_SSH_PORT }}
script: ${{ steps.script.outputs.content }}
vscode:
name: VSCode
needs:
- checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: juliangruber/read-file-action@v1
id: script
with:
path: ./scripts/update/vscode.sh
- uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_SSH_HOST }}
username: ${{ secrets.SERVER_SSH_USER }}
password: ${{ secrets.SERVER_SSH_PASSWORD }}
port: ${{ secrets.SERVER_SSH_PORT }}
script: ${{ steps.script.outputs.content }}