Skip to content

Andromeda v4.6.7 (Clang Formatting) #19

Andromeda v4.6.7 (Clang Formatting)

Andromeda v4.6.7 (Clang Formatting) #19

Workflow file for this run

name: Clang Format
on:
pull_request:
branches: [ master ]
jobs:
clang-format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Clang Format
run: sudo apt-get update && sudo apt-get install -y clang-format
- name: Run Clang Format
run: find ./Components -path './Components/_Libraries' -prune -o -regex '.*\.\(cpp\|hpp\|c\|h\)' -exec clang-format -i {} \;
- name: Commit changes
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git add -u
git commit -m "Apply clang-format" || echo "No changes to commit"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/StudentOrganisationForAerospaceResearch/AvionicsSoftware.git
permissions:
actions: write
pages: write
contents: write