mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-05-07 22:40:49 +08:00
* Updated the release drafter to process the released changelog for OpenBB Platform * Update release drafter configuration * Add OpenBB Documentation Changes and Create Release * Update process_changelog.py path in draft-release.yml * Update release-drafter version and save changelog * Copy changelog with python * Update draft-release.yml to save Changelog * Update draft-release.yml * Encode and save Changelog to Base64 * Update Changelog saving method * Update Changelog format * Update CHANGELOG.md with release notes * Fix draft release workflow * Add cat command to print CHANGELOG.md * Add platform-drafter.yml and update release-drafter.yml and draft-release.yml * Commented out config-name in release-drafter step * Update branch name validation and process_changelog.py * Refactor process_changelog.py to improve readability and maintainability * Refactor process_changelog.py to handle file I/O errors and remove duplicate PR entries --------- Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
49 lines
1.3 KiB
YAML
Vendored
49 lines
1.3 KiB
YAML
Vendored
name: Release Drafter
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
release_pr_number:
|
|
description: 'Release PR Number'
|
|
required: true
|
|
default: ''
|
|
tag:
|
|
description: 'Tag for release (manual input)'
|
|
required: true
|
|
default: ''
|
|
|
|
jobs:
|
|
update_release_draft:
|
|
runs-on: ubuntu-latest
|
|
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: |
|
|
python process_changelog.py CHANGELOG.md ${{ github.event.inputs.release_pr_number }}
|
|
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 }} |