Skip to content

Commit 5064e1c

Browse files
committed
feat(button): in trigger yml
1 parent c723135 commit 5064e1c

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/dev.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff 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=(

.github/workflows/reuseable-ci-checks.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,26 @@ jobs:
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=(

0 commit comments

Comments
 (0)