Skip to content

MAINT: Automate renaming of towncrier stubs #39

MAINT: Automate renaming of towncrier stubs

MAINT: Automate renaming of towncrier stubs #39

Workflow file for this run

name: Changelog
on: # yamllint disable-line rule:truthy
pull_request:
types: [opened, synchronize, labeled, unlabeled]
# https://joht.github.io/johtizen/build/2022/01/20/github-actions-push-into-repository.html#git-commit-within-a-pull-request#example-4
jobs:
changelog_checker:
name: Check towncrier entry in doc/changes/devel/
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install --upgrade towncrier pygithub
- run: python ./.github/actions/rename_towncrier/rename_towncrier.py
- uses: stefanzweifel/git-auto-commit-action@v5
id: commit-action
with:
commit_message: "DOC: Update changelog entry to PR ${{ github.event.pull_request.number }}"
- run: exit 1
if: steps.commit-action.outputs.changes_detected == 'false'
- uses: larsoner/action-towncrier-changelog@co # revert to scientific-python @ 0.1.1 once bug is fixed
with:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Check failure on line 33 in .github/workflows/check_changelog.yml

View workflow run for this annotation

GitHub Actions / Changelog

Invalid workflow file

The workflow is not valid. .github/workflows/check_changelog.yml (Line: 33, Col: 13): A mapping was not expected
BOT_USERNAME: changelog-bot