A Docker-based GitHub Action for running iFlow CLI commands with pre-installed tools
name: iFlow CLI Example
on: [push]
jobs:
iflow-cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run iFlow CLI
uses: iflow-ai/iflow-cli-action@v2.0.0
with:
api_key: ${{ secrets.IFLOW_API_KEY }}
prompt: "Analyze this codebase"
Add your iFlow API key to repository secrets as IFLOW_API_KEY
- name: Run iFlow CLI Issue Triage
uses: iflow-ai/iflow-cli-action@v2.0.0
with:
api_key: ${{ secrets.IFLOW_API_KEY }}
timeout: "3600"
debug: "true"
prompt: |
## Role
You are an issue triage assistant. Analyze the current GitHub issue
and apply the most appropriate existing labels...
precmd: |
npm install
npm run build
git fetch origin main
settings_json: |
{
"theme": "Dark",
"selectedAuthType": "iflow",
"apiKey": "${{ secrets.IFLOW_API_KEY }}",
"baseUrl": "https://custom-api.example.com/v1",
"modelName": "custom-model"
}
| Input | Description |
|---|---|
| prompt | The prompt to execute with iFlow CLI |
| api_key | iFlow API key for authentication |
| Output | Description |
|---|---|
| result | Output from iFlow CLI execution |
| exit_code | Exit code from iFlow CLI execution |
Thank you for using iFlow CLI GitHub Action!
Built with ❤️ by the iFlow team