mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
55 lines
1.5 KiB
YAML
Vendored
55 lines
1.5 KiB
YAML
Vendored
name: 📝 Draft release changelog
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
release_pr_number:
|
|
description: "Previous Release PR Number"
|
|
required: true
|
|
default: ""
|
|
tag:
|
|
description: "Tag for release (manual input)"
|
|
required: true
|
|
default: ""
|
|
|
|
jobs:
|
|
update_release_draft:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
pull-requests: read
|
|
steps:
|
|
- name: 📟 Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: 📝 Release Drafter
|
|
id: release-drafter
|
|
uses: release-drafter/release-drafter@v6.0.0
|
|
# with:
|
|
# config-name: platform-drafter.yml
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: 💾 Save Changelog
|
|
run: |
|
|
cat << 'EOF' > CHANGELOG.md
|
|
${{ steps.release-drafter.outputs.body }}
|
|
EOF
|
|
|
|
- name: 🧬 Process Changelog
|
|
run: |
|
|
pip install requests openai
|
|
python .github/scripts/process_changelog.py CHANGELOG.md ${{ github.event.inputs.release_pr_number }}
|
|
python .github/scripts/summarize_changelog.py ${{ secrets.GITHUB_TOKEN }} ${{ secrets.OPENAI_API_KEY }}
|
|
cat CHANGELOG.md
|
|
|
|
- name: 🛫 Create Release
|
|
uses: mikepenz/action-gh-release@v1
|
|
with:
|
|
body_path: "CHANGELOG.md"
|
|
tag_name: ${{ github.event.inputs.tag }}
|
|
prerelease: false
|
|
draft: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|