diff --git a/.gitea/workflows/deployment.yml b/.gitea/workflows/deployment.yml index cb9c0e9..f07c144 100644 --- a/.gitea/workflows/deployment.yml +++ b/.gitea/workflows/deployment.yml @@ -24,7 +24,7 @@ jobs: docker_folder_changed: ${{ steps.docker_folder.outputs.changed }} steps: - name: Checkout Repository - run: git clone --branch preview https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git . + run: git clone --branch ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git . - name: Check Latest Hugo Version id: get_latest @@ -79,7 +79,7 @@ jobs: shell: sh steps: - name: Checkout Repository - run: git clone --branch preview https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git . + run: git clone --branch ${{ gitea.ref_name }} https://${{ secrets.REPO_TOKEN }}@git.vezpi.com/Vezpi/blog.git . - name: Build Docker Image run: | @@ -143,7 +143,7 @@ jobs: - name: Merge preview Branch on main run: | - git merge --ff-only origin/preview + git merge --ff-only origin/${{ gitea.ref_name }} git push origin main Deploy-Production: