🐾 Smart Action Copy Cat #6
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 Copy Cat | |
on: | |
workflow_dispatch: | |
inputs: | |
action-path: | |
description: 'Path to the action to be used as example' | |
required: true | |
characteristics: | |
description: 'Characteristics of the new action, described in natural language' | |
required: true | |
jobs: | |
replicate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Replicate Smart Action | |
uses: PR-Pilot-AI/smart-actions/replicator@v1 | |
with: | |
# API key for PR Pilot must be defined as a secret in the repository | |
api-key: ${{ secrets.PR_PILOT_API_KEY }} | |
# Inputs for the replicator action | |
template: | | |
ALL files in the directory: | |
${{ inputs.action-path }} | |
characteristics: ${{ github.event.inputs.characteristics }} |