-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
50 lines (43 loc) · 1.17 KB
/
action.yaml
File metadata and controls
50 lines (43 loc) · 1.17 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
48
49
50
name: AI Agent Action
author: Algenix
description: AI Agent action to run tasks inside GitHub Actions
branding:
icon: globe
color: black
inputs:
task-input:
description: 'The input for the AI agent'
required: true
agent-name:
description: 'The name of the agent'
required: false
default: 'default-agent'
log-level:
description: 'Logging level'
required: false
default: 'INFO'
outputs:
run_agent:
description: 'The output from running the AI agent'
value: ${{ steps.run_agent.outputs.output_from_agent }}
runs:
using: "composite"
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Install dependencies
run: |
pip install --no-cache-dir -r requirements.txt
shell: bash
- name: Run AI Agent
id: run_agent
run: |
python ai_agent_sdk.py "${{ inputs.task-input }}" "${{ inputs.agent-name }}" "${{ inputs.log-level }}"
shell: bash
- name: Set output
run: echo "run-agent=Output set by script (optional)" >> $GITHUB_OUTPUT
shell: bash