--- a +++ b/.github/workflows/autofix.yml @@ -0,0 +1,24 @@ +name: autofix.ci + +on: # yamllint disable-line rule:truthy + pull_request: + types: [opened, synchronize, labeled, unlabeled] + +permissions: + contents: read + +jobs: + autofix: + name: Autoupdate changelog entry and headers + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - run: pip install --upgrade towncrier pygithub gitpython numpy + - run: python ./.github/actions/rename_towncrier/rename_towncrier.py + - run: python ./tools/dev/ensure_headers.py + - uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef