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@testing
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
Apply clang-format to PR with tag action:ApplyClangFormat
ENH: Apply clang-format to PR with tag action:ApplyClangFormat

As documented on ITKApplyClangFormatAction[1] the branch has to be pushed
on the upstream repository so it won't work for forks.

[1](https://github.com/InsightSoftwareConsortium/ITKApplyClangFormatAction)
