Skip to content

Commit 8775dc9

Browse files
fix: resolve GitHub Actions context access error for SLACK_WEBHOOK_URL
- Remove invalid double-quoting syntax in comprehensive-testing.yml - Fix malformed YAML that was causing context access validation error - Use standard GitHub Actions context expression format
1 parent 705bcdc commit 8775dc9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/comprehensive-testing.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ jobs:
355355
run: |
356356
set -e
357357
set -o pipefail
358-
npm test -- --testPathPattern="__tests__/compatibility" --json --outputFile=compatibility-results-"${{ matrix.os }"}-"${{ matrix.node-version }"}.json
358+
npm test -- --testPathPattern="__tests__/compatibility" --json --outputFile=compatibility-results-"${{ matrix.os }}"-"${{ matrix.node-version }}".json
359359
env:
360360
NODE_ENV: test
361361
shell: bash
@@ -468,7 +468,7 @@ jobs:
468468
run: |
469469
set -e
470470
set -o pipefail
471-
if [ ""${{ needs.generate-reports.result }"}" = "success" ]; then
471+
if [ "${{ needs.generate-reports.result }}" = "success" ]; then
472472
echo "status=success" >> "$GITHUB_OUTPUT"
473473
echo "message=All tests passed successfully! ✅" >> "$GITHUB_OUTPUT"
474474
else
@@ -504,5 +504,5 @@ jobs:
504504
505505
View details: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
506506
env:
507-
SLACK_WEBHOOK_URL: "\"${{ secrets.SLACK_WEBHOOK_URL }}\""
507+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
508508
timeout-minutes: 30

.github/workflows/contract-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
echo "# Contract Validation Report" > contract-validation-report.md
8181
echo "" >> contract-validation-report.md
8282
echo "**Generated:** $(date -u)" >> contract-validation-report.md
83-
echo "**Commit:** "${{ github.sha }"}" >> contract-validation-report.md
83+
echo "**Commit:** ${{ github.sha }}" >> contract-validation-report.md
8484
echo "" >> contract-validation-report.md
8585
8686
# Run validation and capture output

.github/workflows/deploy-production.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ jobs:
208208
set -e
209209
set -o pipefail
210210
set -Eeuo pipefail
211-
echo ""${{ secrets.KUBE_CONFIG_STAGING }"}" | base64 -d > kubeconfig
211+
echo "${{ secrets.KUBE_CONFIG_STAGING }}" | base64 -d > kubeconfig
212212
export KUBECONFIG=kubeconfig
213213
kubectl cluster-info
214214
- name: Deploy with Helm
@@ -224,7 +224,7 @@ jobs:
224224
helm upgrade --install rag-pipeline-staging ./deployment/helm/rag-pipeline \
225225
--namespace rag-pipeline-staging \
226226
--create-namespace \
227-
--set image.tag="${{ github.sha }"} \
227+
--set image.tag="${{ github.sha }}" \
228228
--set ingress.hosts[0].host=staging.rag-pipeline.yourdomain.com \
229229
--set-string secrets.openaiApiKey=""${OPENAI_API_KEY}"" \
230230
--set-string secrets.pineconeApiKey=""${PINECONE_API_KEY}"" \
@@ -271,7 +271,7 @@ jobs:
271271
set -e
272272
set -o pipefail
273273
set -Eeuo pipefail
274-
echo ""${{ secrets.KUBE_CONFIG_PRODUCTION }"}" | base64 -d > kubeconfig
274+
echo "${{ secrets.KUBE_CONFIG_PRODUCTION }}" | base64 -d > kubeconfig
275275
export KUBECONFIG=kubeconfig
276276
kubectl cluster-info
277277
- name: Deploy with Helm
@@ -287,7 +287,7 @@ jobs:
287287
helm upgrade --install rag-pipeline ./deployment/helm/rag-pipeline \
288288
--namespace rag-pipeline \
289289
--create-namespace \
290-
--set image.tag="${{ github.sha }"} \
290+
--set image.tag="${{ github.sha }}" \
291291
--set ingress.hosts[0].host=rag-pipeline.yourdomain.com \
292292
--set-string secrets.openaiApiKey=""${OPENAI_API_KEY}"" \
293293
--set-string secrets.pineconeApiKey=""${PINECONE_API_KEY}"" \

0 commit comments

Comments
 (0)