Skip to content

Commit

Permalink
changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Guaris committed Jul 19, 2023
1 parent 9a30356 commit 3e3eb12
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/generate-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- cron: '0 0 * * 0'

jobs:
build:
build-changelog:

runs-on: ubuntu-latest

Expand All @@ -20,14 +20,21 @@ jobs:
python -m pip install --upgrade pip
pip install requests
- name: Run changelog script
run: python generate_changelog.py
working-directory: tools/changelog-generator
run: python changelog.py
env:
API_KEY: ${{ secrets.API_KEY }}
- name: Commit and push if it changed
run: |
git diff
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git commit -m "Updated changelog" || echo "No changes to commit"
git push
API_KEY: ${{ secrets.PAT }}
- name: Install markdown link checker
run: pip install linkcheckmd
- name: Check links in changelog
working-directory: tools/changelog-generator
run: python -m linkcheckmd docs_changelog.md
- uses: actions/upload-artifact@v3
if: failure()
with:
name: docs-changelog
path: tools/changelog-generator/docs_changelog.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: Automated Changelog update

0 comments on commit 3e3eb12

Please sign in to comment.