From 7c8ce558cac6354a96d8f483c7d4372af48a0a7a Mon Sep 17 00:00:00 2001 From: Eric Flumerfelt Date: Fri, 10 Jan 2025 14:30:03 -0600 Subject: [PATCH] Add clang-format workflow --- .github/workflows/mu2e-format-single-pkg.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 .github/workflows/mu2e-format-single-pkg.yml diff --git a/.github/workflows/mu2e-format-single-pkg.yml b/.github/workflows/mu2e-format-single-pkg.yml new file mode 100755 index 0000000..c567d1c --- /dev/null +++ b/.github/workflows/mu2e-format-single-pkg.yml @@ -0,0 +1,20 @@ +name: Format Single Pkg Workflow + +on: + push: + branches: + - develop + paths-ignore: + - 'docs/**' + - '.github/**' + pull_request: + branches: [ develop ] + workflow_dispatch: + +jobs: + + build_single_pkg: + name: format single pkg + uses: Mu2e/.github/.github/workflows/mu2e-format-single-pkg.yml@stable + with: + against-ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event_name == 'push' && github.event.before || 0 }}