diff --git a/.github/workflows/main-deploy-only.yml b/.github/workflows/main-deploy-only.yml index 5e344db4d..ff3b626e0 100644 --- a/.github/workflows/main-deploy-only.yml +++ b/.github/workflows/main-deploy-only.yml @@ -16,7 +16,7 @@ jobs: port: ${{ secrets.SSH_PORT }} script: | cd QAcc-BE - git reset --hard HEAD~1 + git reset --hard origin/main git checkout main git pull origin main docker image prune -a --force diff --git a/.github/workflows/main-pipeline.yml b/.github/workflows/main-pipeline.yml index 2eae7af12..164089724 100644 --- a/.github/workflows/main-pipeline.yml +++ b/.github/workflows/main-pipeline.yml @@ -158,7 +158,7 @@ jobs: port: ${{ secrets.SSH_PORT }} script: | cd QAcc-BE - git reset --hard HEAD~1 + git reset --hard origin/main git checkout main git pull origin main docker image prune -a --force diff --git a/.github/workflows/main-publish-deploy.yml b/.github/workflows/main-publish-deploy.yml index cfda9ad63..a82556cfd 100644 --- a/.github/workflows/main-publish-deploy.yml +++ b/.github/workflows/main-publish-deploy.yml @@ -63,7 +63,7 @@ jobs: port: ${{ secrets.SSH_PORT }} script: | cd QAcc-BE - git reset --hard HEAD~1 + git reset --hard origin/main git checkout main git pull origin main docker image prune -a --force diff --git a/.github/workflows/staging-deploy-only.yml b/.github/workflows/staging-deploy-only.yml index 4f781712f..b7166465c 100644 --- a/.github/workflows/staging-deploy-only.yml +++ b/.github/workflows/staging-deploy-only.yml @@ -16,7 +16,7 @@ jobs: port: ${{ secrets.SSH_PORT }} script: | cd QAcc-BE - git reset --hard HEAD~1 + git reset --hard origin/staging git checkout staging git pull origin staging docker image prune -a --force diff --git a/.github/workflows/staging-pipeline.yml b/.github/workflows/staging-pipeline.yml index 29108aed5..f5ed50377 100644 --- a/.github/workflows/staging-pipeline.yml +++ b/.github/workflows/staging-pipeline.yml @@ -158,7 +158,7 @@ jobs: port: ${{ secrets.SSH_PORT }} script: | cd QAcc-BE - git reset --hard HEAD~1 + git reset --hard origin/staging git checkout staging git pull origin staging docker image prune -a --force