Skip to content

Commit eb65a6d

Browse files
committed
feat(button): doesnt run in triggered
1 parent 5064e1c commit eb65a6d

File tree

3 files changed

+28
-56
lines changed

3 files changed

+28
-56
lines changed

.github/workflows/dev.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -143,27 +143,6 @@ 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-
167146
- name: Create appsettings development from secrets
168147
run: |
169148
declare -A paths=(

.github/workflows/make-appsettings-test.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ permissions:
3333

3434
jobs:
3535

36-
37-
make-appsettings-two:
36+
make-appsettings-work-in-push-yml:
3837
name: app settings 2
3938
runs-on: ubuntu-latest
4039
steps:
@@ -62,18 +61,3 @@ jobs:
6261
echo "❌ Not valid JSON"
6362
fi
6463
continue-on-error: true
65-
66-
- name: Create appsettings.Development.json directly
67-
run: |
68-
# Create directory if needed
69-
mkdir -p "$(dirname "./appsettings.Development.json")"
70-
71-
# Write the secret directly to appsettings.Development.json
72-
echo '${{ secrets.FAKE_WASMSERVERHOST_APPSETTINGS_DEVELOPMENT }}' > ./appsettings.Development.json
73-
74-
echo "Created appsettings.Development.json"
75-
echo "File size: $(wc -c < ./appsettings.Development.json) bytes"
76-
continue-on-error: true
77-
78-
79-

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

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,32 +31,20 @@ env:
3131

3232
jobs:
3333

34-
# Build Package
35-
# Build Solution useing package
36-
reuseable-ci-checks-solution-build:
37-
name: Check solution builds
34+
make-appsettings-work-in-push-yml:
35+
name: app settings 2
3836
runs-on: ubuntu-latest
39-
continue-on-error: ${{ inputs.runall }}
40-
outputs:
41-
status: ${{ job.status }}
4237
steps:
4338

4439
- name: Checkout code
4540
uses: actions/checkout@v3
46-
47-
- name: Setup .NET
48-
uses: actions/setup-dotnet@v4
49-
with:
50-
global-json-file: global.json
51-
52-
- name: Replace local environment variable in nuget config because cant provide it as a parameter
53-
run: sed -i "s|%TELBlazorPackageSource%|$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH|g" nuget.config
54-
41+
continue-on-error: true
42+
5543
- name: Debug - Create temporary file with secret content
5644
run: |
5745
# Write the secret to a file
5846
echo '${{ secrets.FAKE_WASMSERVERHOST_APPSETTINGS_DEVELOPMENT }}' > appsettings.Development.json
59-
47+
6048
# Display file content
6149
echo "File content:"
6250
cat appsettings.Development.json
@@ -70,7 +58,28 @@ jobs:
7058
else
7159
echo "❌ Not valid JSON"
7260
fi
73-
continue-on-error: true
61+
continue-on-error: true
62+
63+
# Build Package
64+
# Build Solution useing package
65+
reuseable-ci-checks-solution-build:
66+
name: Check solution builds
67+
runs-on: ubuntu-latest
68+
continue-on-error: ${{ inputs.runall }}
69+
outputs:
70+
status: ${{ job.status }}
71+
steps:
72+
73+
- name: Checkout code
74+
uses: actions/checkout@v3
75+
76+
- name: Setup .NET
77+
uses: actions/setup-dotnet@v4
78+
with:
79+
global-json-file: global.json
80+
81+
- name: Replace local environment variable in nuget config because cant provide it as a parameter
82+
run: sed -i "s|%TELBlazorPackageSource%|$TELBLAZOR_PACKAGE_LOCAL_OUTPUT_PATH|g" nuget.config
7483

7584
- name: Create appsettings development from secrets
7685
run: |

0 commit comments

Comments
 (0)