From 3e3eb1215b4fbce9602077c7419a6d085ab45cc4 Mon Sep 17 00:00:00 2001 From: Angel Date: Wed, 19 Jul 2023 16:13:16 -0400 Subject: [PATCH] changelog generation --- .github/workflows/generate-changelog.yml | 29 +++++++++++++++--------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/generate-changelog.yml b/.github/workflows/generate-changelog.yml index b39c3c3d8c32..ec4ac220a8f5 100644 --- a/.github/workflows/generate-changelog.yml +++ b/.github/workflows/generate-changelog.yml @@ -5,7 +5,7 @@ on: - cron: '0 0 * * 0' jobs: - build: + build-changelog: runs-on: ubuntu-latest @@ -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 \ No newline at end of file + 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 \ No newline at end of file