forked from FreeRTOS/FreeRTOS
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 965 Bytes
/
formatting.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
name: Format Pull Request Files
on:
issue_comment:
types: [created]
env:
bashPass: \033[32;1mPASSED -
bashInfo: \033[33;1mINFO -
bashFail: \033[31;1mFAILED -
bashEnd: \033[0m
jobs:
Formatting:
name: Run Formatting Check
if: ${{ github.event.issue.pull_request &&
( ( github.event.comment.body == '/bot run uncrustify' ) ||
( github.event.comment.body == '/bot run formatting' ) ) }}
runs-on: ubuntu-20.04
steps:
- name: Apply Formatting Fix of Common Files
id: check-formatting-of-common
uses: FreeRTOS/CI-CD-Github-Actions/formatting-bot@main
continue-on-error: true
with:
path: FreeRTOS/Demo/Common
exclude-dirs: ethernet, drivers
- name: Apply Formatting Fix
id: check-formatting-of-rest
uses: FreeRTOS/CI-CD-Github-Actions/formatting-bot@main
continue-on-error: true
with:
exclude-dirs: ethernet, drivers, FreeRTOS/Demo