Skip to content

Commit 16c87d6

Browse files
committed
pre-commit ci as action
1 parent f2d3a24 commit 16c87d6

File tree

2 files changed

+32
-11
lines changed

2 files changed

+32
-11
lines changed

.github/workflows/pre-commit.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Pre-commit.ci
3+
4+
# yamllint disable-line rule:truthy
5+
on:
6+
push:
7+
tags: ["*"]
8+
branches:
9+
- ros2
10+
11+
jobs:
12+
main:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-python@v4
17+
with:
18+
python-version: 3.x
19+
- uses: pre-commit/[email protected]
20+
- uses: pre-commit-ci/[email protected]
21+
if: always()

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
#
1313
# See https://github.com/pre-commit/pre-commit
1414
---
15-
ci:
16-
autofix_commit_msg: |
17-
[pre-commit.ci] auto fixes from pre-commit.com hooks
18-
19-
for more information, see https://pre-commit.ci
20-
autofix_prs: true
21-
autoupdate_branch: ros2
22-
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
23-
autoupdate_schedule: weekly
24-
skip: []
25-
submodules: false
15+
# ci:
16+
# autofix_commit_msg: |
17+
# [pre-commit.ci] auto fixes from pre-commit.com hooks
18+
19+
# for more information, see https://pre-commit.ci
20+
# autofix_prs: true
21+
# autoupdate_branch: ros2
22+
# autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
23+
# autoupdate_schedule: weekly
24+
# skip: []
25+
# submodules: false
2626

2727
repos:
2828
# Standard hooks

0 commit comments

Comments
 (0)