-
Notifications
You must be signed in to change notification settings - Fork 35
31 lines (29 loc) · 936 Bytes
/
uncrustify.yml
File metadata and controls
31 lines (29 loc) · 936 Bytes
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: Uncrustify
on:
issue_comment:
# types: [created]
jobs:
run_uncrustify:
if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, 'Marie Kondo')
runs-on: ubuntu-latest
container: ros:kilted
steps:
- uses: xt0rted/pull-request-comment-branch@v1
id: comment-branch
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
with:
path: repo
ref: ${{ steps.comment-branch.outputs.head_ref }}
- name: Style
run: |
# Exec Uncrustify
cd repo
. /opt/ros/$ROS_DISTRO/setup.sh && ament_uncrustify --reformat
# Commit
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git commit -am "Uncrustified"
git push