Skip to content

Commit

Permalink
test each step
Browse files Browse the repository at this point in the history
  • Loading branch information
julianocosta89 committed Nov 6, 2024
1 parent 88564c1 commit 75c9bd7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/component-build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,26 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Load .env variables
- name: Load .env variables into GitHub environment
if: ${{ inputs.push }}
run: |
echo "Loading environment variables from .env..."
while IFS= read -r line || [ -n "$line" ]; do
# Skip empty lines and comments
[[ "$line" =~ ^#.*$ ]] || [[ -z "$line" ]] && continue
# Export variable to GitHub Actions environment
echo "$line" >> $GITHUB_ENV
echo "Exported $line"
done < .env
- name: Verify loaded environment variables
run: |
echo "OTEL_JAVA_AGENT_VERSION: $OTEL_JAVA_AGENT_VERSION"
echo "AD_SERVICE_PORT: $AD_SERVICE_PORT"
env:
OTEL_JAVA_AGENT_VERSION: ${{ env.OTEL_JAVA_AGENT_VERSION }}
AD_SERVICE_PORT: ${{ env.AD_SERVICE_PORT }}

- name: Check for changes and set push options
id: check_changes
run: |
Expand Down

0 comments on commit 75c9bd7

Please sign in to comment.