forked from simongog/sdsl-lite
-
Notifications
You must be signed in to change notification settings - Fork 17
45 lines (39 loc) · 1.12 KB
/
lint.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Linting
on:
workflow_dispatch:
concurrency:
group: lint-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
TZ: Europe/Berlin
defaults:
run:
shell: bash -Eexuo pipefail {0}
jobs:
lint:
name: Linting
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Run clang-format
uses: DoozyX/clang-format-lint-action@v0.17
with:
source: '.'
exclude: './external'
extensions: 'h,hpp,hpp.cmake,cpp'
clangFormatVersion: 15
inplace: True
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: '[MISC] Format code'
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
body: Auto-generated clang-format changes
signoff: false
branch: actions/clang-format
delete-branch: true
title: '[MISC] Format code'
reviewers: ${{ github.actor }}
draft: false