From 43e6d739e423e443819336e762bbd2401a723f0e Mon Sep 17 00:00:00 2001 From: Chris Ayers Date: Thu, 26 Sep 2024 12:13:48 -0400 Subject: [PATCH] Refactor azure-dev.yml to set default working directory for the build job --- .github/workflows/azure-dev.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index 9b65577..a81d479 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -1,12 +1,16 @@ +name: .NET Aspire + AZD + on: workflow_dispatch: push: - # Run when commits are pushed to mainline branch (main or master) - # Set this to the mainline branch you are using - branches: - - main - - master - + branches: [main] + paths: + - 'aspire-sample/**' + pull_request: + branches: [main] + paths: + - 'aspire-sample/**' + # GitHub Actions workflow to deploy to Azure using azd # To configure required secrets for connecting to Azure, simply run `azd pipeline config` @@ -59,7 +63,7 @@ jobs: env: AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} - - name: Provision Infrastructure + - name: Restore Aspire Workload run: dotnet workload restore - name: Provision Infrastructure