From cd6b24d9b0e37732ffbef9c24ecb5afd8f733ed7 Mon Sep 17 00:00:00 2001 From: bot-hermes Date: Sat, 5 Sep 2026 08:58:53 -0400 Subject: [PATCH] ci(deploy): clone into subdir, don't rm the runner cwd rm -rf $GITHUB_WORKSPACE deleted the runner's own working directory, breaking git clone (fatal: Unable to read current working directory). Clone into $GITHUB_WORKSPACE/repo instead. --- .gitea/workflows/deploy-custom.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy-custom.yml b/.gitea/workflows/deploy-custom.yml index 6eff3195..2cdee8e3 100644 --- a/.gitea/workflows/deploy-custom.yml +++ b/.gitea/workflows/deploy-custom.yml @@ -8,16 +8,16 @@ jobs: steps: - name: Checkout run: | - rm -rf $GITHUB_WORKSPACE - mkdir -p $GITHUB_WORKSPACE - git clone --depth 1 --branch custom https://gitea@giteassh.buzzbee.dev:Vibing/openchamber.git $GITHUB_WORKSPACE + rm -rf $GITHUB_WORKSPACE/repo + mkdir -p $GITHUB_WORKSPACE/repo + git clone --depth 1 --branch custom https://gitea@giteassh.buzzbee.dev:Vibing/openchamber.git $GITHUB_WORKSPACE/repo - name: Show revision - run: git -C $GITHUB_WORKSPACE rev-parse --short HEAD + run: git -C $GITHUB_WORKSPACE/repo rev-parse --short HEAD - name: Copy workspace to build dir run: | rm -rf /opt/app/deploy/custom-build mkdir -p /opt/app/deploy/custom-build - tar -C $GITHUB_WORKSPACE --exclude=.git -cf - . | tar -C /opt/app/deploy/custom-build -xf - + tar -C $GITHUB_WORKSPACE/repo --exclude=.git -cf - . | tar -C /opt/app/deploy/custom-build -xf - - name: Install dependencies run: cd /opt/app/deploy/custom-build && bun install --frozen-lockfile - name: Build web