File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 8
8
Uncrustify :
9
9
name : Run_Uncrustify
10
10
if : ${{ github.event.issue.pull_request && github.event.comment.body == '/bot run uncrustify' }}
11
- runs-on : ubuntu-latest
11
+ runs-on : ubuntu-20.04
12
12
steps :
13
13
- name : Dump GitHub context
14
14
env :
15
15
GITHUB_CONTEXT : ${{ toJson(github) }}
16
16
run : echo "$GITHUB_CONTEXT"
17
17
- name : Install Utils
18
18
run : |
19
- apt-get update && apt-get --assume-yes install software-properties-common curl jq sed
20
- add-apt-repository ppa:git-core/ppa
21
- apt-get update && apt-get --assume-yes install git
19
+ sudo apt-get update && sudo apt-get --assume-yes install software-properties-common curl jq sed
20
+ sudo add-apt-repository ppa:git-core/ppa
21
+ sudo apt-get update && sudo apt-get --assume-yes install git
22
22
git --version
23
23
- name : get pullrequest url
24
24
run : |
@@ -43,15 +43,15 @@ jobs:
43
43
run : |
44
44
: # Install Uncrustify
45
45
echo "::group::Install Uncrustify"
46
- sudo apt-get update && apt-get --assume-yes install uncrustify
46
+ sudo apt-get update && sudo apt-get --assume-yes install uncrustify
47
47
echo "::endgroup::"
48
48
- name : Run Uncrustify
49
49
run : |
50
50
: # Uncrustify on C files while ignoring symlinks.
51
51
: # Make a collapsible section in the log to run uncrustify
52
52
echo "::group::Uncrustify Check"
53
53
uncrustify --version
54
- find . -iname "*.[hc ]" -exec uncrustify -c tools/ uncrustify.cfg --no-backup --replace {} +
54
+ find . -iname "*.[ch ]" | xargs uncrustify --no-backup --replace --if-changed -c tools/uncrustify.cfg -l C
55
55
echo "::endgroup::"
56
56
echo -e "\033[32;3mUncrustify Formatting Applied\033[0m"
57
57
- name : Push changes to upstream repository
You can’t perform that action at this time.
0 commit comments