-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yaml
37 lines (37 loc) · 1.2 KB
/
action.yaml
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
name: 'Plan and Execute'
description: 'Plans and executes tasks based on a given description and expected result'
inputs:
task-description:
description: 'The description of the task that should be accomplished'
required: true
expected-result:
description: 'The expected result of the execution phase'
required: true
agent-hints:
description: 'Hints for the agent to accomplish the task'
required: false
sdk-version:
description: 'PR Pilot SDK version to use'
required: false
default: '1.3.2'
api-key:
description: 'API key for PR Pilot'
required: true
runs:
using: 'composite'
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: python -m pip install --upgrade pip && pip install pr-pilot==${{ inputs.sdk-version }}
shell: bash
- name: Plan and Execute Task
run: python ${{ github.action_path }}/plan-and-execute.py
shell: bash
env:
PR_PILOT_API_KEY: ${{ inputs.api-key }}
TASK_DESCRIPTION: ${{ inputs.task-description }}
EXPECTED_RESULT: ${{ inputs.expected-result }}
AGENT_HINTS: ${{ inputs.agent-hints }}