diff --git a/.github/workflows/deploy-test-with-github-hosted-runner.yml b/.github/workflows/deploy-test-with-github-hosted-runner.yml index 286b2864..ed78f636 100644 --- a/.github/workflows/deploy-test-with-github-hosted-runner.yml +++ b/.github/workflows/deploy-test-with-github-hosted-runner.yml @@ -37,6 +37,7 @@ jobs: cp ~/config-injection/envs/.env.${{ env.NODE_ENV }} ${{ env.PROJECT_PATH }}/.env && cd ${{ env.PROJECT_PATH }} && git checkout ${{ env.BRANCH_NAME }} && + git fetch --all && git reset --hard origin/${{ env.BRANCH_NAME }} && git pull origin ${{ env.BRANCH_NAME }} && bash script/prebuild.sh &&