Skip to content

Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.1 #456

Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.1

Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.1 #456

name: Check Code Formatting for AD-RSS Library
on:
push:
branches: main
pull_request:
branches: main
permissions:
contents: read
jobs:
check_cpp:
name: Check Code Formatting
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: true
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install clang-format-14
- name: Check Formatting
run: failed=0; for file in `find . -path ./dependencies -prune -false -o -iname *.cpp -o -iname *.hpp`; do if [ `clang-format-14 $file -output-replacements-xml | grep -c "<replacement "` -ne 0 ]; then echo "$file does not match codeing style. Please run clang-format-14"; failed=1; fi; if [ $failed -ne 0 ]; then exit 1; fi; done