Smart Action Wizard #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Smart Action Wizard | |
on: | |
workflow_dispatch: | |
inputs: | |
trigger: | |
description: 'When should the new action be triggered?' | |
required: true | |
default: 'whenever a new issue is opened' | |
task_description: | |
description: 'What should PR Pilot do when the action is triggered?' | |
required: true | |
default: 'Comment on the issue with a helpful message' | |
jobs: | |
create-action: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Generate New Smart Action | |
uses: PR-Pilot-AI/smart-actions/action-wizard@v1 | |
with: | |
# API key for PR Pilot must be defined as a secret in the repository | |
api-key: ${{ secrets.PR_PILOT_API_KEY }} | |
# When should the new action be triggered? | |
trigger: ${{ github.event.inputs.trigger }} | |
# What should PR Pilot do when the action is triggered? | |
task_description: ${{ github.event.inputs.task_description }} |