Skip to content

Commit 43e6d73

Browse files
committed
Refactor azure-dev.yml to set default working directory for the build job
1 parent 535e497 commit 43e6d73

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/azure-dev.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
name: .NET Aspire + AZD
2+
13
on:
24
workflow_dispatch:
35
push:
4-
# Run when commits are pushed to mainline branch (main or master)
5-
# Set this to the mainline branch you are using
6-
branches:
7-
- main
8-
- master
9-
6+
branches: [main]
7+
paths:
8+
- 'aspire-sample/**'
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- 'aspire-sample/**'
13+
1014
# GitHub Actions workflow to deploy to Azure using azd
1115
# To configure required secrets for connecting to Azure, simply run `azd pipeline config`
1216

@@ -59,7 +63,7 @@ jobs:
5963
env:
6064
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
6165

62-
- name: Provision Infrastructure
66+
- name: Restore Aspire Workload
6367
run: dotnet workload restore
6468

6569
- name: Provision Infrastructure

0 commit comments

Comments
 (0)