From 784d17dcdfbf6ac831682fc2545f1983428bb1ad Mon Sep 17 00:00:00 2001 From: Thomas Marchand Date: Mon, 15 Apr 2024 14:17:22 +0100 Subject: [PATCH] feat: add git reset if repo exists --- .github/workflows/testnet_deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/testnet_deploy.yml b/.github/workflows/testnet_deploy.yml index 6cdd915f..adc78f36 100644 --- a/.github/workflows/testnet_deploy.yml +++ b/.github/workflows/testnet_deploy.yml @@ -36,6 +36,7 @@ jobs: echo "Repository exists, pulling changes..." cd \$REPO_PATH sudo docker-compose down + git reset --hard HEAD git pull else echo "Repository doesn't exist, cloning..."