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