mirror of
https://git.ari.lt/ari/forgejo-stats.git
synced 2024-11-09 11:02:37 +00:00
add clang-format
Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
parent
28604e768b
commit
d2bbc76d8f
2 changed files with 65 additions and 46 deletions
19
.clang-format
Normal file
19
.clang-format
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
BasedOnStyle: LLVM
|
||||
IndentWidth: 4
|
||||
SortIncludes: false
|
||||
AlignConsecutiveAssignments: true
|
||||
AlignConsecutiveBitFields: true
|
||||
AlignConsecutiveMacros: true
|
||||
AlignEscapedNewlines: true
|
||||
AllowShortCaseLabelsOnASingleLine: true
|
||||
AllowShortEnumsOnASingleLine: true
|
||||
AllowShortFunctionsOnASingleLine: true
|
||||
AllowShortLambdasOnASingleLine: true
|
||||
BinPackParameters: false
|
||||
IndentCaseBlocks: true
|
||||
IndentCaseLabels: true
|
||||
IndentExternBlock: true
|
||||
IndentGotoLabels: true
|
||||
---
|
||||
|
14
stats.yaml
14
stats.yaml
|
@ -3,14 +3,14 @@ on:
|
|||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- 'commits.png'
|
||||
- 'languages.png'
|
||||
- "commits.png"
|
||||
- "languages.png"
|
||||
schedule:
|
||||
- cron: '0 */8 * * *'
|
||||
- cron: "0 */8 * * *"
|
||||
|
||||
jobs:
|
||||
stats:
|
||||
runs-on: docker
|
||||
runs-on: ubuntu-latest
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
@ -27,8 +27,8 @@ jobs:
|
|||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
cache: 'pip'
|
||||
python-version: "3.10"
|
||||
cache: "pip"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
@ -50,6 +50,6 @@ jobs:
|
|||
git config --local user.email "stats@localhost"
|
||||
git config --local user.name "Stats CI/CD"
|
||||
git add commits.png languages.png
|
||||
git commit -am "Update stats" || echo "No changes to commit"
|
||||
git commit -am "[skip ci] Update stats" || echo "No changes to commit"
|
||||
git push origin HEAD
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue