Skip to content

Commit cc2af8f

Browse files
authored
Add copilot-setup-steps (#1089)
1 parent 63d6b11 commit cc2af8f

File tree

1 file changed

+27
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)