Skip to content

Merge pull request #128 from stdgraph/algorithms/cc #91

Merge pull request #128 from stdgraph/algorithms/cc

Merge pull request #128 from stdgraph/algorithms/cc #91

Workflow file for this run

name: Formatting
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master and dev branch
push:
branches: [ master ]
jobs:
formatting-check:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Install clang-format
run: |
pip install clang-format \
&& clang-format --version
shell: bash
- name: Format files
run: ${{github.workspace}}/scripts/format.sh ${{github.workspace}} y
shell: bash
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
committer_name: GitHub Actions
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
message: ':octocat: Applied clang-format.'
add: '*.hpp *.cpp'