From 28726148ce4bd79d685a494aa90c4a7c74fd0d04 Mon Sep 17 00:00:00 2001 From: solomiofactura Date: Thu, 26 Sep 2024 06:35:09 +0000 Subject: [PATCH] Added Check folder permissions and .env file existens and Export environment variables steps. --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6af57a..50a9d89 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,9 +37,17 @@ jobs: - name: Print workspace path run: | echo "Workspace is located at: $GITHUB_WORKSPACE" - + - name: Check folder permissions run: ls -ld "$GITHUB_WORKSPACE/PersistedAssemblyBuilder.ConsoleApp/" - + + - name: Check .env file existence + run: ls -l "$GITHUB_WORKSPACE/PersistedAssemblyBuilder.ConsoleApp/PersistedAssemblyBuilder.ConsoleApp/BlazorBundler/" + + - name: Export environment variables + run: | + export $(cat "$GITHUB_WORKSPACE/PersistedAssemblyBuilder.ConsoleApp/PersistedAssemblyBuilder.ConsoleApp/BlazorBundler/.env" | xargs) + ./load-env.sh + - name: Load environment variables run: bash ./.devcontainer/load-env.sh \ No newline at end of file