Add ROS Noetic Industrial CI Pipeline #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Formatter | |
on: | |
pull_request: | |
jobs: | |
formatter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y clang-format libxml2-utils | |
- name: clang-format | |
run: find . -type f \( -name "*.cpp" -or -name "*.hpp" -or -name "*.h" \) -exec clang-format -i -style=file {} \; | |
- name: xmllint | |
run: find . -type f \( -name "*.xml" -or -name "*.launch" -or -name "*.xacro" \) -exec xmllint --format -o {} {} \; | |
- name: auto commit | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: apply format |