mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 13:01:57 -04:00
Add the formatting bot action to FreeRTOS-Kernel (#787)
This commit is contained in:
parent
170a291d4d
commit
596292f874
23
.github/workflows/formatting.yml
vendored
Normal file
23
.github/workflows/formatting.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
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
|
||||
uses: FreeRTOS/CI-CD-Github-Actions/formatting-bot@main
|
||||
id: check-formatting
|
Loading…
Reference in a new issue