Skip to content

Commit cf6c94e

Browse files
committed
Add a workflow that gives copilot access to the nix environment
1 parent 5cd75c8 commit cf6c94e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/copilot.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Copilot
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
paths:
9+
- .github/workflows/copilot.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot.yml
13+
workflow_dispatch:
14+
inputs:
15+
commit_sha:
16+
description: Git commit sha, on which, to run this workflow
17+
18+
defaults:
19+
run:
20+
shell: nix develop ./tools/nix --command bash {0}
21+
22+
jobs:
23+
copilot-setup-steps:
24+
name: Copilot - setup
25+
runs-on: ubuntu-24.04
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
29+
with:
30+
ref: ${{ github.event.inputs.commit_sha }}
31+
32+
- name: Setup Nix
33+
id: setup-nix
34+
uses: ./.github/actions/setup_nix
35+
with:
36+
cache-id: all

0 commit comments

Comments
 (0)