Add HSF badge #153
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 of the workflow | |
name: Clang-Format | |
# Controls when the action will run. Triggers the workflow on push | |
# except for the main and stable branches | |
on: | |
push: | |
branches-ignore: [ main, stable ] | |
# Defines the main job where we checkout our code, run clang-format | |
# and commit changes | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out our repository under $GITHUB_WORKSPACE, so our job can access it | |
- uses: actions/checkout@v2 | |
# Applies clang-format to all C/C++ files w/ the specified style | |
- name: Apply clang-format | |
id: formatting | |
uses: HSF/clang-format-action@v0.4 | |
with: | |
style: 'Google' | |
# Gets and prints the output message | |
- name: Get the output message | |
run: echo "${{ steps.formatting.outputs.message }}" |