Skip to content

Commit

Permalink
used $GITHUB_WORKSPACE
Browse files Browse the repository at this point in the history
  • Loading branch information
solomiofactura committed Sep 26, 2024
1 parent 935a158 commit 3debe7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/load-env.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Set the environment file path
ENV_FILE_PATH="/workspaces/PersistedAssemblyBuilder.ConsoleApp/PersistedAssemblyBuilder.ConsoleApp/BlazorBundler/.env"
ENV_FILE_PATH="$GITHUB_WORKSPACE/PersistedAssemblyBuilder.ConsoleApp/PersistedAssemblyBuilder.ConsoleApp/BlazorBundler/.env"

# Check if the .env file exists
if [ -f "$ENV_FILE_PATH" ]; then
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
- name: Test NugetApiKey
run: |
echo "NugetApiKey is set to: $NugetApiKey" # Will print the value (or part of it)
- name: Print workspace path
run: |
echo "Workspace is located at: $GITHUB_WORKSPACE"
- name: Load environment variables
run: bash ./.devcontainer/load-env.sh

0 comments on commit 3debe7c

Please sign in to comment.