diff --git a/.github/workflows/flink-ci-template.yml b/.github/workflows/flink-ci-template.yml
index 39f40752fd1abb..c5a7f5ea2b010b 100644
--- a/.github/workflows/flink-ci-template.yml
+++ b/.github/workflows/flink-ci-template.yml
@@ -44,8 +44,8 @@ env:
   # The working directory within the Docker container is set to /__w which is mapped to the runner
   # directory /home/runner/work.
   CONTAINER_WORKING_DIR: /__w/flink/flink
-  MAVEN_REPO_FOLDER: /__w/flink/flink/.m2/repository
-  MAVEN_ARGS: -Dmaven.repo.local=/__w/flink/flink/.m2/repository
+  MAVEN_REPO_FOLDER: /__w/.m2/repository
+  MAVEN_ARGS: -Dmaven.repo.local=/__w/.m2/repository
   FLINK_ARTIFACT_DIR: /root/
   FLINK_ARTIFACT_FILENAME: flink_artifacts.tar.gz
   DOCKER_IMAGES_CACHE_FOLDER: /root/.docker-cache