From 11d31eebf5673b55581dbe858bfdf4c33c8e3307 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 29 Sep 2022 18:14:56 +1300 Subject: [PATCH] FIX Don't try to create a file in non-existent dir (#49) --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1c81b5..ef88234 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -555,7 +555,8 @@ jobs: cat .env # silverstripe logging - cat << EOF >> app/_config/my-logger.yml + if [[ -d "./app/_config/" ]]; then + cat << EOF >> app/_config/my-logger.yml --- Name: error-logging After: '*' @@ -570,6 +571,7 @@ jobs: - "$GITHUB_WORKSPACE/silverstripe.log" - "notice" EOF + fi # Artifacts directory must be created after composer install as it would remove the artifacts directory # This seems a bit strange, if you need to add an artifact at an earlier stage then revalidate that