Skip to content

Merge pull request #446 from bluewave-labs/develop #19

Merge pull request #446 from bluewave-labs/develop

Merge pull request #446 from bluewave-labs/develop #19

name: Generate Release Notes
on:
push:
branches:
- staging
jobs:
generate_release_notes:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Generate release notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python generate_release_notes.py
- name: Commit and push release notes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add release_notes.md
git commit -m "Add release notes for the latest deployment"
git push