summaryrefslogtreecommitdiff
path: root/attic/auto-format.yml
blob: dae82137885b6df8c703dcb1b2da107e54aa8ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Code style compliance check
on: push

jobs:
  run:
    name: Format
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repo
        uses: actions/checkout@v2

      - name: Install black
        run: pip3 install black

      - name: Format code
        run: ./build.sh format-code "all"

      - name: Commit changes
        uses: joseph-henry/add-and-commit@v7
        with:
          author_name: github-actions
          author_email: 41898282+github-actions[bot]@users.noreply.github.com
          message: 'Code style enforcement'
          add: '.'