Skip to content

Commit c852a5c

Browse files
committed
feat(button): spam cicd
1 parent 1fe1a3a commit c852a5c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,38 @@ jobs:
9393
- name: Replace local environment variable in nuget config because cant provide it as a parameter
9494
run: sed -i "s|%TELBlazorPackageSource%|$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH|g" nuget.config
9595

96+
# - name: Create appsettings development from secrets
97+
# run: |
98+
# declare -A paths=(
99+
# ["./TELBlazor.Components.UnitTests/appsettings.Development.json"]="${{ secrets.UNITTESTS_APPSETTINGS_DEVELOPMENT }}"
100+
# ["./TELBlazor.Components.ShowCase.WasmStaticClient/wwwroot/appsettings.Development.json"]="${{ secrets.WASMSTATICCLIENT_APPSETTINGS_DEVELOPMENT }}"
101+
# ["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost.Client/wwwroot/appsettings.Development.json"]="${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_DEVELOPMENT }}"
102+
# ["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/appsettings.Development.json"]="${{ secrets.WASMSERVERHOST_APPSETTINGS_DEVELOPMENT }}"
103+
# )
104+
105+
# for path in "${!paths[@]}"; do
106+
# mkdir -p "$(dirname "$path")"
107+
# printf '%s' "${paths[$path]}" > "$path"
108+
# done
109+
96110
- name: Create appsettings development from secrets
97111
run: |
112+
# Declare the associative array 'paths'
98113
declare -A paths=(
99114
["./TELBlazor.Components.UnitTests/appsettings.Development.json"]="${{ secrets.UNITTESTS_APPSETTINGS_DEVELOPMENT }}"
100115
["./TELBlazor.Components.ShowCase.WasmStaticClient/wwwroot/appsettings.Development.json"]="${{ secrets.WASMSTATICCLIENT_APPSETTINGS_DEVELOPMENT }}"
101116
["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost.Client/wwwroot/appsettings.Development.json"]="${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_DEVELOPMENT }}"
102117
["./TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/appsettings.Development.json"]="${{ secrets.WASMSERVERHOST_APPSETTINGS_DEVELOPMENT }}"
103118
)
104119
120+
# Iterate over the keys of the 'paths' array
105121
for path in "${!paths[@]}"; do
122+
# Create the directory if it doesn't exist
106123
mkdir -p "$(dirname "$path")"
124+
# Write the secret value to the file
107125
printf '%s' "${paths[$path]}" > "$path"
108126
done
127+
shell: /usr/bin/bash -e
109128

110129
- name: Clean lock files because the newly generated package file will superseed the locks
111130
run: |

0 commit comments

Comments
 (0)