Skip to content

.github/workflows/generate-release-notes.yml #1

.github/workflows/generate-release-notes.yml

.github/workflows/generate-release-notes.yml #1

name: Generate and Publish Release Notes
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
# tags:
# - 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10
- name: Install dependencies
run: pip install requests
- name: Generate release notes
run: python .github/scripts/generate_release_notes.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
RELEASE_TAG: ${{ github.ref_name }}
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
body_path: release_notes.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}