diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ed4b8ac..5a09d17 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,16 +14,17 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.20.6 + go-version: 1.21.5 - name: executing remote ssh commands using password - uses: appleboy/ssh-action@master + uses: fifsky/ssh-action@master with: host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} key: ${{ secrets.KEY }} + user: ${{ secrets.USERNAME }} port: ${{ secrets.PORT }} - script: | + args: "-tt" + command: | cd $HOME/vitess-bot git reset --hard FETCH_HEAD git clean -fd @@ -32,4 +33,4 @@ jobs: killall -9 vitess-bot source ~/.profile go build -o vitess-bot ./go - nohup ./vitess-bot & \ No newline at end of file + nohup ./vitess-bot &