From ebdf9a4fcbd3c273c27d03a7347c76c95ec94e71 Mon Sep 17 00:00:00 2001 From: jacoterh <54140851+jacoterh@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:14:37 +0000 Subject: [PATCH 1/3] adding pre-commit action --- .github/workflows/pre-commit.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 00000000..e054421a --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,13 @@ +# .github/workflows/pre-commit.yml +name: Pre-commit + +on: [pull_request, push] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: pre-commit/action@v2.0.3 + with: + extra_args: '--all-files' From b556cad2a58069eaa581b09b8680b0b97e9efcad Mon Sep 17 00:00:00 2001 From: jacoterh <54140851+jacoterh@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:18:23 +0000 Subject: [PATCH 2/3] reformatting with yamlfmt --- .github/workflows/pre-commit.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index e054421a..bc081d8c 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,8 +1,6 @@ # .github/workflows/pre-commit.yml name: Pre-commit - on: [pull_request, push] - jobs: pre-commit: runs-on: ubuntu-latest From 329e58df0b81bcc72cdcfbd47e1c8de17088f03d Mon Sep 17 00:00:00 2001 From: jacoterh <54140851+jacoterh@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:31:51 +0000 Subject: [PATCH 3/3] removing action on PR --- .github/workflows/pre-commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index bc081d8c..184c8c82 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,6 +1,6 @@ # .github/workflows/pre-commit.yml name: Pre-commit -on: [pull_request, push] +on: [push] jobs: pre-commit: runs-on: ubuntu-latest