Skip to content

Commit

Permalink
Add quick-task action definition
Browse files Browse the repository at this point in the history
  • Loading branch information
PR Pilot committed Apr 14, 2024
1 parent b4a6542 commit 606066b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions quick-task/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'Quick Task'
description: 'Creates a new PR Pilot task based on a task description provided in the action inputs'
inputs:
sdk-version:
description: 'PR Pilot SDK version to use'
required: false
default: '1.0.3'
api-key:
description: 'API key for PR Pilot'
required: true
task-description:
description: 'The description of the task to create'
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: Run script
run: python ${{ github.action_path }}/quick-task.py
shell: bash
env:
PR_PILOT_API_KEY: ${{ inputs.api-key }}
TASK_DESCRIPTION: ${{ inputs.task-description }}

0 comments on commit 606066b

Please sign in to comment.