fix(ci): use git -C instead of cd to avoid breaking working directory
All checks were successful
Build and Push Docker Image / build (push) Successful in 42s

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.
This commit is contained in:
2026-05-04 14:36:52 +00:00
parent 4982b7d09f
commit cc1226defe

View File

@@ -23,7 +23,7 @@ jobs:
git clone --depth=1 --branch main \ git clone --depth=1 --branch main \
"https://x-access-token:${CLONE_TOKEN}@gitea.ext.ben.io/b3nw/schwab-scraper.git" \ "https://x-access-token:${CLONE_TOKEN}@gitea.ext.ben.io/b3nw/schwab-scraper.git" \
vendor/schwab-scraper 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 echo "${{ gitea.sha }}" > vendor/mcp-server-commit.txt
- name: Login to Gitea Container Registry - name: Login to Gitea Container Registry