mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-26 22:40:33 +00:00
81c9212460
I noticed a few deprecation warnings so went through and updated all the "uses" dependencies to the latest.
39 lines
854 B
YAML
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
|