Restart lichess-bot by @MattEstHaut #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Restart lichess-bot service | |
run-name: Restart lichess-bot by @${{ github.actor }} | |
on: | |
workflow_run: | |
workflows: ["Deploy to VPS on push"] | |
types: | |
- completed | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Restart lichess-bot service | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
script_stop: true | |
script: | | |
echo ${{secrets.PASSWORD}} | sudo -S systemctl restart lichess-bot.service |