From 18cabefe9c11dc79276ad675904d0170c5661c70 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sat, 25 Jul 2026 18:58:59 +0700 Subject: [PATCH] fix(ci): remove duplicate submodule sync code in docker-build-push The Sync submodule locally step had an identical duplicate block: after cd-ing into SUBNODULE_PATH in the first block, the second block tried cd SUBNODULE_PATH again, causing 'No such file or directory' since the working directory was already inside the submodule path. Also added cd $GITHUB_WORKSPACE at the end of the first block to ensure the next step starts from the workspace root. --- .github/workflows/docker-build-push.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index 516617b..b37540e 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -201,11 +201,7 @@ jobs: cd "$SUBMODULE_PATH" git fetch origin "$DISPATCH_SHA" git checkout "$DISPATCH_SHA" - fi - if [ "$EVENT_NAME" = "repository_dispatch" ] && [ -n "${DISPATCH_SHA:-}" ]; then - cd "$SUBMODULE_PATH" - git fetch origin "$DISPATCH_SHA" - git checkout "$DISPATCH_SHA" + cd "${GITHUB_WORKSPACE}" fi - uses: docker/login-action@v4