From ba4c385a921765ec99e7cc31081158042f97c5da Mon Sep 17 00:00:00 2001 From: Justin Yoo Date: Mon, 27 Nov 2023 18:23:42 +0900 Subject: [PATCH] Update GHA workflow --- .github/workflows/azure-dev.yml | 11 +++++++---- README.md | 2 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index b166e6c..3f37d4a 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -4,6 +4,9 @@ on: branches: - main - 'feature/*' + pull_request: + branches: + - main # https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication permissions: @@ -87,12 +90,12 @@ jobs: $openAI = @{ Endpoint = $endpoint; ApiKey = $apiKey; DeploymentId = $deploymentId; } - # Copy-Item -Path ./AspireYouTubeSummariser.AppHost/appsettings.Development.sample.json ` - # -Destination ./AspireYouTubeSummariser.AppHost/appsettings.Development.json -Force + Copy-Item -Path ./AspireYouTubeSummariser.AppHost/appsettings.Development.sample.json ` + -Destination ./AspireYouTubeSummariser.AppHost/appsettings.Development.json -Force - $appsettings = Get-Content -Path ./AspireYouTubeSummariser.AppHost/appsettings.json | ConvertFrom-Json + $appsettings = Get-Content -Path ./AspireYouTubeSummariser.AppHost/appsettings.Development.json | ConvertFrom-Json $appsettings.OpenAI = $openAI - $appsettings | ConvertTo-Json -Depth 100 | Out-File -Path ./AspireYouTubeSummariser.AppHost/appsettings.json -Force + $appsettings | ConvertTo-Json -Depth 100 | Out-File -Path ./AspireYouTubeSummariser.AppHost/appsettings.Development.json -Force - name: Setup .NET SDK uses: actions/setup-dotnet@v3 diff --git a/README.md b/README.md index 7f1349e..7bac46e 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,8 @@ This provides sample Aspire-orchestrated apps that summarise a YouTube video tra azd deploy ``` +1. Push code changes to the GitHub repository to trigger a GitHub Actions workflow. + ## Resources - [.NET Aspire overview](https://learn.microsoft.com/dotnet/aspire/get-started/aspire-overview?WT.mc_id=dotnet-107070-juyoo)