mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-08 08:13:20 +08:00
update
This commit is contained in:
parent
1680455a1a
commit
b3470e0eb9
4
.github/workflows/build_new.yml
vendored
4
.github/workflows/build_new.yml
vendored
@ -91,8 +91,8 @@ jobs:
|
|||||||
"env": {
|
"env": {
|
||||||
"ENVIRONMENT": "dev",
|
"ENVIRONMENT": "dev",
|
||||||
"TESTING": "1",
|
"TESTING": "1",
|
||||||
"DEEPSEEK_API_KEY": "${{ secrets.DEEPSEEK_API_KEY }}",
|
"DEEPSEEK_API_KEY": "",
|
||||||
"TAVILY_API_KEY": "${{ secrets.TAVILY_API_KEY }}"
|
"TAVILY_API_KEY": ""
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
5
.github/workflows/template_test.yml
vendored
5
.github/workflows/template_test.yml
vendored
@ -36,6 +36,7 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
default: results.xml
|
default: results.xml
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compose_and_test:
|
compose_and_test:
|
||||||
name: Compose Services and Run Tests
|
name: Compose Services and Run Tests
|
||||||
@ -64,8 +65,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Load Inputs (parse JSON strings)
|
# Load Inputs (parse JSON strings)
|
||||||
$imagesJson = '${{ inputs.images }}'
|
$imagesJson = '${{ inputs.images }}'
|
||||||
|
$deepseekApiKey = '${{ secrets.DEEPSEEK_API_KEY }}'
|
||||||
|
$tavilyApiKey = '${{ secrets.TAVILY_API_KEY }}'
|
||||||
# Substitute secrets *before* parsing JSON using environment variables
|
# Substitute secrets *before* parsing JSON using environment variables
|
||||||
# Be very careful with escaping if secrets contain special JSON characters
|
# Be very careful with escaping if secrets contain special JSON characters
|
||||||
|
$imagesJson = $imagesJson -replace '"DEEPSEEK_API_KEY": ""', "`"DEEPSEEK_API_KEY`": `"$deepseekApiKey`""
|
||||||
|
$imagesJson = $imagesJson -replace '"TAVILY_API_KEY": ""', "`"TAVILY_API_KEY`": `"$tavilyApiKey`""
|
||||||
|
|
||||||
Write-Host "Substituted Images JSON: $imagesJson" # Debugging - remove sensitive info if public
|
Write-Host "Substituted Images JSON: $imagesJson" # Debugging - remove sensitive info if public
|
||||||
$images = $imagesJson | ConvertFrom-Json
|
$images = $imagesJson | ConvertFrom-Json
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user