diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index f16b30b..0160ed6 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -40,6 +40,18 @@ jobs: ${{ env.IMAGE_NAME }}:${{ gitea.sha }} ${{ env.IMAGE_NAME }}:latest + - name: Checkout Infra Repository Manually + run: | + echo "๐Ÿงน Cleaning up old workspace..." + rm -rf infra-workspace + + echo "๐Ÿš€ Attempting to clone the infrastructure repository..." + # Using the token directly in the URL to bypass the API and clone over HTTPS + git clone https://gitea_bot:${{ secrets.INFRA_REPO_TOKEN }}@git.h0melab.uk/${{ env.INFRA_REPO }}.git infra-workspace + + echo "โœ… Clone successful! Contents:" + ls -la infra-workspace + - name: Checkout Infra Repository uses: actions/checkout@v3 with: