Skip to content

fix: changed main to master #1

fix: changed main to master

fix: changed main to master #1

Workflow file for this run

name: Update Bot
on:
push:
branches: [master]
workflow_dispatch:
env:
REPO_NAME: ${{ github.event.repository.name }}
jobs:
deploy-via-sftp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: SFTP Deploy
uses: wlixcc/SFTP-Deploy-Action@v1.2.1
with:
username: ubuntu
server: 132.145.220.235
port: 22
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
local_path: ./*
remote_path: /ubuntu/home/${{ env.REPO_NAME }}/
args: "-o ConnectTimeout=5"
restart-bot:
needs: [deploy-via-sftp]
runs-on: ubuntu-latest
steps:
- id: creating-systemctl-service
uses: fifsky/ssh-action@master
with:
command: sudo systemctl start ${{ env.REPO_NAME }}-watcher.service
host: 132.145.220.235
user: ubuntu
key: ${{ secrets.SSH_PRIVATE_KEY }}