From cc1226defef19382ff4afb96d97a81ede2121d77 Mon Sep 17 00:00:00 2001 From: b3nw Date: Mon, 4 May 2026 14:36:52 +0000 Subject: [PATCH] fix(ci): use git -C instead of cd to avoid breaking working directory The previous cd vendor/schwab-scraper caused the subsequent echo to write mcp-server-commit.txt into the wrong path, which made the CI build fail. --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3b58385..154d77b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -23,7 +23,7 @@ jobs: git clone --depth=1 --branch main \ "https://x-access-token:${CLONE_TOKEN}@gitea.ext.ben.io/b3nw/schwab-scraper.git" \ vendor/schwab-scraper - cd vendor/schwab-scraper && git rev-parse HEAD > ../schwab-scraper-commit.txt + git -C vendor/schwab-scraper rev-parse HEAD > vendor/schwab-scraper-commit.txt echo "${{ gitea.sha }}" > vendor/mcp-server-commit.txt - name: Login to Gitea Container Registry