diff --git a/.github/workflows/apply-clang-format.yml b/.github/workflows/apply-clang-format.yml new file mode 100644 index 0000000..e4b16b9 --- /dev/null +++ b/.github/workflows/apply-clang-format.yml @@ -0,0 +1,15 @@ +name: Apply clang-format to PR + +on: + pull_request: + types: [labeled] + +jobs: + clang-format: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: InsightSoftwareConsortium/ITKApplyClangFormatAction@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }}