Skip to content

Commit 3af37ef

Browse files
Add Copilot setup steps (#61933)
1 parent 50b93bc commit 3af37ef

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'Copilot Setup Steps'
2+
on: workflow_dispatch
3+
4+
jobs:
5+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
6+
copilot-setup-steps:
7+
runs-on: ubuntu-latest
8+
9+
# Set the permissions to the lowest permissions possible needed for your steps.
10+
# Copilot will be given its own token for its operations.
11+
permissions:
12+
# 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.
13+
contents: read
14+
15+
# You can define any steps you want, and they will run before the agent starts.
16+
# If you do not check out your code, Copilot will do this for you.
17+
steps:
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
with:
20+
submodules: true
21+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
22+
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
23+
- uses: ./.github/actions/setup-go
24+
with:
25+
cache-name: copilot-setup-steps
26+
- run: npm ci
27+
- run: npm i -g hereby
28+
# pull dprint caches before network access is blocked
29+
- run: npx hereby check:format || true

0 commit comments

Comments
 (0)