File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,27 @@ jobs:
143143 - name : Replace local environment variable in nuget config because cant provide it as a parameter
144144 run : sed -i "s|%TELBlazorPackageSource%|$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH|g" nuget.config
145145
146+ - name : Debug - Create temporary file with secret content
147+ run : |
148+ # Write the secret to a file
149+ echo '${{ secrets.FAKE_WASMSERVERHOST_APPSETTINGS_DEVELOPMENT }}' > appsettings.Development.json
150+
151+ # Display file content
152+ echo "File content:"
153+ cat appsettings.Development.json
154+
155+ # Validate if it's proper JSON
156+ echo "Validating JSON format:"
157+ if cat appsettings.Development.json | jq . >/dev/null 2>&1; then
158+ echo "✅ Valid JSON"
159+ echo "JSON structure:"
160+ cat appsettings.Development.json | jq .
161+ else
162+ echo "❌ Not valid JSON"
163+ fi
164+ continue-on-error : true
165+
166+
146167 - name : Create appsettings development from secrets
147168 run : |
148169 declare -A paths=(
Original file line number Diff line number Diff line change 5252 - name : Replace local environment variable in nuget config because cant provide it as a parameter
5353 run : sed -i "s|%TELBlazorPackageSource%|$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH|g" nuget.config
5454
55+ - name : Debug - Create temporary file with secret content
56+ run : |
57+ # Write the secret to a file
58+ echo '${{ secrets.FAKE_WASMSERVERHOST_APPSETTINGS_DEVELOPMENT }}' > appsettings.Development.json
59+
60+ # Display file content
61+ echo "File content:"
62+ cat appsettings.Development.json
63+
64+ # Validate if it's proper JSON
65+ echo "Validating JSON format:"
66+ if cat appsettings.Development.json | jq . >/dev/null 2>&1; then
67+ echo "✅ Valid JSON"
68+ echo "JSON structure:"
69+ cat appsettings.Development.json | jq .
70+ else
71+ echo "❌ Not valid JSON"
72+ fi
73+ continue-on-error : true
74+
5575 - name : Create appsettings development from secrets
5676 run : |
5777 declare -A paths=(
You can’t perform that action at this time.
0 commit comments