From fe6d3be3b7173a8235b9435ab64fca6c8afd5c9d Mon Sep 17 00:00:00 2001 From: JRoot Junior Date: Fri, 16 Aug 2024 00:34:14 +0300 Subject: [PATCH] Try to fix towncrier --- .github/workflows/pull_request_changelog.yml | 14 +++++++------- pyproject.toml | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pull_request_changelog.yml b/.github/workflows/pull_request_changelog.yml index c481bc9b..e91a898f 100644 --- a/.github/workflows/pull_request_changelog.yml +++ b/.github/workflows/pull_request_changelog.yml @@ -22,10 +22,10 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Install towncrier - run: pip install towncrier + run: pip install -U towncrier - name: Check changelog env: @@ -36,7 +36,7 @@ jobs: - name: Find bot comment if: "always()" - uses: peter-evans/find-comment@v2 + uses: peter-evans/find-comment@v3 id: fc with: issue-number: ${{ github.event.pull_request.number }} @@ -45,7 +45,7 @@ jobs: - name: Ask for changelog if: "failure()" - uses: peter-evans/create-or-update-comment@v2 + uses: peter-evans/create-or-update-comment@v4 with: edit-mode: replace comment-id: ${{ steps.fc.outputs.comment-id }} @@ -65,7 +65,7 @@ jobs: - name: Changelog found if: "success()" - uses: peter-evans/create-or-update-comment@v2 + uses: peter-evans/create-or-update-comment@v4 with: edit-mode: replace comment-id: ${{ steps.fc.outputs.comment-id }} @@ -80,7 +80,7 @@ jobs: if: "contains(github.event.pull_request.labels.*.name, 'skip news')" steps: - name: Find bot comment - uses: peter-evans/find-comment@v2 + uses: peter-evans/find-comment@v3 id: fc with: issue-number: ${{ github.event.pull_request.number }} @@ -88,7 +88,7 @@ jobs: body-includes: Changelog - name: Comment when docs is not needed - uses: peter-evans/create-or-update-comment@v2 + uses: peter-evans/create-or-update-comment@v4 with: edit-mode: replace comment-id: ${{ steps.fc.outputs.comment-id }} diff --git a/pyproject.toml b/pyproject.toml index 511d89b4..6e940ff3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,12 +93,12 @@ docs = [ "sphinx-copybutton~=0.5.2", "furo~=2023.9.10", "Sphinx-Substitution-Extensions~=2022.2.16", - "towncrier~=23.6.0", + "towncrier~=24.7.1", "pygments~=2.16.1", "pymdown-extensions~=10.3", "markdown-include~=0.8.1", "Pygments~=2.16.1", - "sphinxcontrib-towncrier~=0.3.2a0", + "sphinxcontrib-towncrier~=0.4.0a0", ] dev = [ "black~=24.4.2",