-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
40 lines (35 loc) · 879 Bytes
/
action.yml
File metadata and controls
40 lines (35 loc) · 879 Bytes
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
name: 'CodeBuddy AI'
description: 'Your friendly AI code reviewer powered by Google Gemini'
author: 'Your Name'
branding:
icon: 'check-circle'
color: 'blue'
inputs:
gemini_api_key:
description: 'Gemini API key for AI reviews'
required: true
runs:
using: 'composite'
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
shell: bash
run: |
cd ${{ github.action_path }}
npm install
- name: Build action
shell: bash
run: |
cd ${{ github.action_path }}
npm run build
- name: Run CodeBuddy AI
shell: bash
env:
INPUT_GEMINI_API_KEY: ${{ inputs.gemini_api_key }}
GITHUB_TOKEN: ${{ github.token }}
run: |
cd ${{ github.action_path }}
node dist/index.js