Skip to content

Commit e503653

Browse files
Create copilot-setup-steps.yml workflow for GitHub Copilot agents
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
1 parent 7eedb95 commit e503653

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Copilot Setup Steps
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
7+
defaults:
8+
run:
9+
shell: pwsh
10+
11+
jobs:
12+
copilot-setup-steps:
13+
name: copilot-setup-steps
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v5
19+
with:
20+
dotnet-version: 8.x
21+
- name: Setup Dependency Caching
22+
uses: actions/cache@v4
23+
id: nuget-cache
24+
with:
25+
path: |
26+
~/.nuget/packages
27+
${{ github.workspace }}/**/obj/project.assets.json
28+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
29+
restore-keys: |
30+
${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
31+
${{ runner.os }}-nuget-
32+
33+
- name: Restore dependencies
34+
run: dotnet restore

0 commit comments

Comments
 (0)