-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.11 KB
/
copilot-setup-steps.yml
File metadata and controls
47 lines (40 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: "Copilot Setup Steps"
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}-copilot-setup-steps
cancel-in-progress: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_TERM_COLOR: always
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
packages: write
pull-requests: write
issues: write
checks: write
deployments: write
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Setup Rust nightly toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo install --path . --debug
- run: git ai hook install
- run: git ai config set openai-api-key ${{ secrets.OPENAI_API_KEY }}
- run: git ai config set model gpt-4.1