From bdb0537428a01fc3032a53ce4adc7cfc7c679b1c Mon Sep 17 00:00:00 2001 From: eesoymilk Date: Mon, 20 May 2024 01:53:14 +0800 Subject: [PATCH] fix: workflows --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aa84feb..b31033e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,7 +74,12 @@ jobs: username: soymilk key: ${{ secrets.KAMATERA_KEY }} script: | - docker stop soybot || true + if [ $(docker ps -q -f name=soybot) ]; then + docker stop soybot + fi + + docker pull ghcr.io/soymilk/soybot:latest + docker run -d \ --name soybot \ -e TOKEN=${{ secrets.TOKEN }} \