diff --git a/.github/actions/environment/action.yml b/.github/actions/environment/action.yml
index 5a66f064b17e186be5867e13e0ae7d7cad415653..52c94a96b30764ba9de2e5dfad69d21b2190e5d8 100644
--- a/.github/actions/environment/action.yml
+++ b/.github/actions/environment/action.yml
@@ -82,5 +82,6 @@ runs:
         fi
         # Found that actions/checkout does not remove all temporary
         # files from previous runs, to avoid of it need to run:
+        git clean -xffd
         git submodule foreach --recursive 'git clean -xffd'
       shell: bash