Skip to content

Commit

Permalink
Filtered out invalid lines from .env
Browse files Browse the repository at this point in the history
  • Loading branch information
solomiofactura committed Sep 26, 2024
1 parent ade2fc4 commit 2e14755
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ jobs:

- name: Export environment variables
run: |
export $(cat "$GITHUB_WORKSPACE/PersistedAssemblyBuilder.ConsoleApp/BlazorBundler/.env" | xargs)
./load-env.sh
set -o allexport
grep -v '^#' "$GITHUB_WORKSPACE/PersistedAssemblyBuilder.ConsoleApp/BlazorBundler/.env" | grep -v '^$' | xargs -d '\n'
set +o allexport
- name: Load environment variables
run: bash ./.devcontainer/load-env.sh

0 comments on commit 2e14755

Please sign in to comment.