Skip to content

Commit 9a6f853

Browse files
committed
Update GHA workflows
1 parent eaf7c93 commit 9a6f853

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

.github/workflows/azure-dev-build-only.yml

+15-14
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,22 @@ jobs:
6969
# coverage-threshold: 0
7070
# coverage-threshold: 80
7171
allow-failed-tests: true
72-
post-new-comment: true
72+
# post-new-comment: true
73+
post-new-comment: false
7374
comment-title: "Test Results"
7475

75-
- name: Comment to issue
76-
if: ${{ !cancelled() && github.event_name == 'pull_request' }}
77-
uses: actions-cool/issues-helper@v3
78-
with:
79-
actions: "create-comment"
80-
token: ${{ secrets.GITHUB_TOKEN }}
81-
issue-number: ${{ github.event.pull_request.number }}
82-
body: |
83-
## Test Results
76+
# - name: Comment to issue
77+
# if: ${{ !cancelled() && github.event_name == 'pull_request' }}
78+
# uses: actions-cool/issues-helper@v3
79+
# with:
80+
# actions: "create-comment"
81+
# token: ${{ secrets.GITHUB_TOKEN }}
82+
# issue-number: ${{ github.event.pull_request.number }}
83+
# body: |
84+
# ## Test Results
8485

85-
### Tests
86+
# ### Tests
8687

87-
| :clipboard: Total | :heavy_check_mark: Passed | :x: Failed | :warning: Skipped |
88-
|-------------------|---------------------------|------------|-------------------|
89-
| ${{ steps.test-report.outputs.tests-total }} | ${{ steps.test-report.outputs.tests-passed }} | ${{ steps.test-report.outputs.tests-failed }} | ${{ steps.test-report.outputs.tests-skipped }} |
88+
# | :clipboard: Total | :heavy_check_mark: Passed | :x: Failed | :warning: Skipped |
89+
# |-------------------|---------------------------|------------|-------------------|
90+
# | ${{ steps.test-report.outputs.tests-total }} | ${{ steps.test-report.outputs.tests-passed }} | ${{ steps.test-report.outputs.tests-failed }} | ${{ steps.test-report.outputs.tests-skipped }} |

.github/workflows/azure-dev.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
AZURE_ENV_NAME: ${{ vars.AZURE_ENV_NAME }}
2525
AZURE_LOCATION: ${{ vars.AZURE_LOCATION }}
2626
AZURE_OPENAI_KEYS: ${{ secrets.AZURE_OPENAI_KEYS }}
27+
AZURE_KEYVAULT_URI: ${{ secrets.AZURE_KEYVAULT_URI }}
28+
AZURE_KEYVAULT_SECRET_NAME: ${{ vars.AZURE_KEYVAULT_SECRET_NAME }}
2729

2830
steps:
2931
- name: Checkout
@@ -50,7 +52,9 @@ jobs:
5052
shell: pwsh
5153
run: |
5254
$appsettings = Get-Content -Path "./src/AzureOpenAIProxy.ApiApp/appsettings.json" -Raw | ConvertFrom-Json
53-
$appsettings.Azure.OpenAI.Instances = '${{ env.AZURE_OPENAI_KEYS }}' | ConvertFrom-Json
55+
$appsettings.Azure.OpenAI.Instances = @()
56+
$appsettings.Azure.KeyVault.VaultUri = "${{ env.AZURE_KEYVAULT_URI }}"
57+
$appsettings.Azure.KeyVault.SecretName = "${{ env.AZURE_KEYVAULT_SECRET_NAME }}"
5458
$appsettings | ConvertTo-Json -Depth 100 | Set-Content -Path "./src/AzureOpenAIProxy.ApiApp/appsettings.json" -Encoding UTF8 -Force
5559
5660
- name: Restore NuGet packages

0 commit comments

Comments
 (0)