-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
63 lines (58 loc) · 1.83 KB
/
action.yml
File metadata and controls
63 lines (58 loc) · 1.83 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
name: "AutoChangelog"
description: "Generate changelog body.txt for GitHub releases"
author: "XPGAMESLLC"
inputs:
organization:
description: "GitHub organization"
required: true
repo_name:
description: "GitHub repository name"
required: true
file_name:
description: "Output file name"
required: false
default: "body.txt"
auth_token:
description: "GitHub token used for API access"
required: true
python_version:
description: "Python version used by the action"
required: false
default: "3.12"
ai_summary:
description: "Enable Claude AI summary section"
required: false
default: "false"
ai_model:
description: "Claude model for summaries (e.g., claude-haiku-4-5-20251001)"
required: false
default: "claude-haiku-4-5-20251001"
ai_max_items:
description: "Max items per category sent to AI"
required: false
default: "120"
ai_api_key:
description: "Anthropic API key used for Claude summarization"
required: false
default: ""
runs:
using: "composite"
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python_version }}
- name: Install AutoChangelog package
shell: bash
run: python -m pip install --upgrade pip && python -m pip install "${{ github.action_path }}"
- name: Generate changelog
shell: bash
env:
AUTH_TOKEN: ${{ inputs.auth_token }}
AI_API_KEY: ${{ inputs.ai_api_key }}
run: |
EXTRA_ARGS=""
if [ "${{ inputs.ai_summary }}" = "true" ]; then
EXTRA_ARGS="--ai-summary --ai-model ${{ inputs.ai_model }} --ai-max-items ${{ inputs.ai_max_items }}"
fi
python -m releasenotes.generator "${{ inputs.organization }}" "${{ inputs.repo_name }}" --file_name "${{ inputs.file_name }}" $EXTRA_ARGS