add debug
Some checks failed
CI / build-and-test (push) Failing after 2m23s

This commit is contained in:
Tobias Klemp
2026-01-02 01:49:44 +01:00
parent 8d36f66ea7
commit 960770d73b

View File

@@ -46,10 +46,54 @@ runs:
COMPOSE_PROJECT_NAME=${{ inputs.project_name }}
EOF
- name: debug environment file
- name: Debug environment file
shell: bash
run: |
cat ${{ inputs.environment_file }} | echo $1
echo "=== ENVIRONMENT FILE DEBUG ==="
echo "File path: ${{ inputs.environment_file }}"
echo ""
# Check if file exists
if [ -f "${{ inputs.environment_file }}" ]; then
echo "✅ Environment file exists"
# Show file size and permissions
ls -la "${{ inputs.environment_file }}"
echo ""
# Show file contents
echo "📄 File contents:"
echo "---"
cat "${{ inputs.environment_file }}"
echo "---"
echo ""
# Show line count
LINE_COUNT=$(wc -l < "${{ inputs.environment_file }}")
echo "📊 File has $LINE_COUNT lines"
# Check for empty lines or whitespace issues
echo "🔍 Checking for issues:"
if grep -q "^$" "${{ inputs.environment_file }}"; then
echo "⚠️ File contains empty lines"
else
echo "✅ No empty lines found"
fi
# Validate each variable is set
echo "🔧 Variable validation:"
while IFS='=' read -r key value; do
if [ -n "$key" ] && [ -n "$value" ]; then
echo " ✅ $key = $value"
elif [ -n "$key" ]; then
echo " ❌ $key is empty"
fi
done < "${{ inputs.environment_file }}"
else
echo "❌ Environment file does not exist!"
fi
echo "=============================="
- name: Create Docker context
shell: bash