Skip to content

🐛 fix isConnected for reversed motors #8

🐛 fix isConnected for reversed motors

🐛 fix isConnected for reversed motors #8

Workflow file for this run

# automatically format code using clang-format when a pull request is merged or manually triggered
name: format-code
on:
pull_request:
types: [closed] # on merge pull request
workflow_dispatch: # allows manual triggering
permissions:
contents: write
jobs:
format:
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Format code # Outputs the correctly formatted code
uses: DoozyX/[email protected]
with:
source: './src/hardware ./include/hardware'
extensions: 'hpp,cpp'
clangFormatVersion: 18
inplace: true # Same as `clang-format -i`
# Commits the correctly formatted files to the repository
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Action
author_email: [email protected]
message: Automated code formatting
push: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}