This repository was archived by the owner on Mar 14, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
91 lines (83 loc) · 2.57 KB
/
action.yml
File metadata and controls
91 lines (83 loc) · 2.57 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: 'Attune AI Workflows'
description: 'AI-powered code review and release prep for Claude, with smart tier routing and cost optimization'
author: 'Smart AI Memory'
branding:
icon: 'zap'
color: 'purple'
inputs:
workflow:
description: 'Attune workflow to run: code-review or release-prep'
required: true
anthropic_api_key:
description: 'Your Anthropic API key'
required: true
python_version:
description: 'Python version to use'
required: false
default: '3.12'
attune_version:
description: 'Attune AI version to install (default: latest)'
required: false
default: 'latest'
config:
description: 'Path to attune config file (optional)'
required: false
default: ''
tier_strategy:
description: 'Cost tier strategy: auto, cheap, capable, or premium'
required: false
default: 'auto'
fail_on_critical:
description: 'Fail the action if critical issues are found'
required: false
default: 'true'
outputs:
report:
description: 'Path to the generated report file'
summary:
description: 'Brief summary of findings'
issues_found:
description: 'Number of issues found'
cost_saved:
description: 'Estimated cost savings from tier routing'
runs:
using: 'composite'
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python_version }}
cache: 'pip'
- name: Install Attune AI
shell: bash
run: |
if [ "${{ inputs.attune_version }}" = "latest" ]; then
pip install attune-ai[developer]
else
pip install attune-ai[developer]==${{ inputs.attune_version }}
fi
- name: Run Attune Workflow
shell: bash
env:
ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}
ATTUNE_TIER_STRATEGY: ${{ inputs.tier_strategy }}
ATTUNE_CI_MODE: 'true'
run: |
python ${{ github.action_path }}/src/run_workflow.py \
--workflow "${{ inputs.workflow }}" \
--config "${{ inputs.config }}" \
--fail-on-critical "${{ inputs.fail_on_critical }}" \
--output-dir "${{ runner.temp }}/attune-results"
- name: Upload Report
if: always()
uses: actions/upload-artifact@v4
with:
name: attune-${{ inputs.workflow }}-report
path: ${{ runner.temp }}/attune-results/
- name: Post Summary
if: always()
shell: bash
run: |
if [ -f "${{ runner.temp }}/attune-results/summary.md" ]; then
cat "${{ runner.temp }}/attune-results/summary.md" >> $GITHUB_STEP_SUMMARY
fi