ci: fix build workflows - remove defaults.run.working-directory
CI / build-server-core (push) Failing after 26s
CI / build-dashboard (push) Failing after 20s
CI / build-docs (push) Failing after 20s
CI / server-core-test (push) Successful in 5m33s
CI / device-agent-test (push) Successful in 1m22s
CI / dashboard-test (push) Successful in 1m5s
CI / build-device-agent (push) Failing after 20s
CI / release (push) Has been skipped

All 4 build jobs failed because defaults.run.working-directory
chdir'd into subdirs before checkout created them.

- Remove defaults.run.working-directory from all reusable workflows
- Add per-step working-directory to run steps that need it
- Auth config step runs from repo root (no working-directory)
This commit is contained in:
datadunia
2026-06-10 09:05:26 +07:00
parent 072aa48db0
commit c37d4a751c
4 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -6,12 +6,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/docs
steps:
- name: Configure git auth for submodules
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
- uses: actions/checkout@v4
with:
submodules: true
@@ -24,9 +22,11 @@ jobs:
node-version: '24'
- name: Install
working-directory: apps/docs
run: npm ci || npm install
- name: Build
working-directory: apps/docs
run: npm run docs:build
- name: Upload artifact