forked from alandtse/CommonLibF4
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (24 loc) · 901 Bytes
/
maintenance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Scripted maintenance
on: [push, pull_request_target, workflow_dispatch]
jobs:
maintenance:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Run clang-format
run: find -type f \( -name *.h -o -name *.cpp \) | xargs clang-format-14 -style=file -i
- name: Glob files
run: python ${{ github.workspace }}/CommonLibF4/scripts/glob_files.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: maintenance"