Skip to content

Commit a709375

Browse files
committed
Added Copilot setup steps
1 parent 748ea21 commit a709375

File tree

5 files changed

+41
-3
lines changed

5 files changed

+41
-3
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
16+
copilot-setup-steps:
17+
runs-on: windows-2025
18+
19+
# Set the permissions to the lowest permissions possible needed for your steps.
20+
# Copilot will be given its own token for its operations.
21+
permissions:
22+
# If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
23+
contents: read
24+
25+
# You can define any steps you want, and they will run before the agent starts.
26+
# If you do not check out your code, Copilot will do this for you.
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v4
30+
31+
- name: Setup necessary dotnet SDKs
32+
uses: actions/setup-dotnet@v4
33+
with:
34+
global-json-file: global.json
35+
dotnet-version: |
36+
9.x
37+
8.x
File renamed without changes.

FSharp.Data.GraphQL.slnx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
<File Path="docs/tools/templates/template.cshtml" />
2424
</Folder>
2525
<Folder Name="/GitHub/">
26-
<File Path=".github/workflows/publish_ci.yml" />
27-
<File Path=".github/workflows/publish_release.yml" />
28-
<File Path=".github/workflows/pull_request.yml" />
26+
<File Path=".github/workflows/copilot-setup-steps.yml" />
27+
<File Path=".github/workflows/publish-ci.yml" />
28+
<File Path=".github/workflows/publish-release.yml" />
29+
<File Path=".github/workflows/pull-request.yml" />
2930
</Folder>
3031
<Folder Name="/project/">
3132
<File Path="README.md" />

0 commit comments

Comments
 (0)