From d453c62e02e55bb447179ac7dc3466d60465c50b Mon Sep 17 00:00:00 2001 From: Aleksandr Savelev <94454577+AleksSavelev@users.noreply.github.com> Date: Tue, 27 Feb 2024 18:28:34 +0100 Subject: [PATCH] FIxed the pipeline if derictory doesn't exist (#151) --- .github/workflows/updateLocalizations.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/updateLocalizations.yml b/.github/workflows/updateLocalizations.yml index 53445fab8..eb155b75d 100644 --- a/.github/workflows/updateLocalizations.yml +++ b/.github/workflows/updateLocalizations.yml @@ -58,6 +58,10 @@ jobs: location="${file/$substring/localizations/}" substring="/stringresources" newLocation="${location/$substring//stringResources}" + if [ ! -d "$newLocation" ]; then + echo "$newLocation does not exist. Creating it..." + mkdir -p "$newLocation" + fi cp $file $newLocation; done; - name: Commit and push changes @@ -152,6 +156,10 @@ jobs: fi substring="visuals/" location="${file/$substring/localizations/}" + if [ ! -d "$location" ]; then + echo "$location does not exist. Creating it..." + mkdir -p "$location" + fi cp $location $file; done; - name: Commit and push new changes to submodules