sotn-decomp/.github/workflows/format.yml
Mark Street 81c9212460
Bump CI deps (#1052)
I noticed a few deprecation warnings so went through and updated all the
"uses" dependencies to the latest.
2024-02-10 16:17:46 +00:00

39 lines
854 B
YAML

name: Format code
on:
push:
branches:
- master
paths:
- '*/*.c'
- '*/*.h'
- '**/*.c'
- '**/*.h'
- '**/*.py'
- 'config/symbols.*.txt'
workflow_dispatch:
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install requirements
run: sudo apt-get install clang-format
- name: Install python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install black
run: pip install black pyyaml mapfile-parser==2.1.4
- name: Clone main repository
uses: actions/checkout@v4
with:
submodules: false
- name: Format code
run: make format
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Format code