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
+2 -3
View File
@@ -13,12 +13,10 @@ jobs:
exclude:
- goos: windows
goarch: arm64
defaults:
run:
working-directory: apps/device-agent
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
@@ -31,6 +29,7 @@ jobs:
go-version: '1.26'
- name: Build
working-directory: apps/device-agent
env:
CGO_ENABLED: '0'
GOOS: ${{ matrix.goos }}