From 16c87d61116d48888c90d7e0360096ef233d8171 Mon Sep 17 00:00:00 2001 From: Woen-Sug Choi Date: Sat, 1 Jun 2024 07:38:26 +0900 Subject: [PATCH] pre-commit ci as action --- .github/workflows/pre-commit.yml | 21 +++++++++++++++++++++ .pre-commit-config.yaml | 22 +++++++++++----------- 2 files changed, 32 insertions(+), 11 deletions(-) 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..e68478e7 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,21 @@ +--- +name: Pre-commit.ci + +# yamllint disable-line rule:truthy +on: + push: + tags: ["*"] + branches: + - ros2 + +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.x + - uses: pre-commit/action@v3.0.1 + - uses: pre-commit-ci/lite-action@v1.0.2 + if: always() diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0cf56a55..adbb2b8f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,17 +12,17 @@ # # See https://github.com/pre-commit/pre-commit --- -ci: - autofix_commit_msg: | - [pre-commit.ci] auto fixes from pre-commit.com hooks - - for more information, see https://pre-commit.ci - autofix_prs: true - autoupdate_branch: ros2 - autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate" - autoupdate_schedule: weekly - skip: [] - submodules: false +# ci: +# autofix_commit_msg: | +# [pre-commit.ci] auto fixes from pre-commit.com hooks + +# for more information, see https://pre-commit.ci +# autofix_prs: true +# autoupdate_branch: ros2 +# autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate" +# autoupdate_schedule: weekly +# skip: [] +# submodules: false repos: # Standard hooks