Skip to content

Commit 0c76dfe

Browse files
Use ros2_control_ci to get ament linters preinstalled
1 parent a935981 commit 0c76dfe

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

.github/workflows/format.yaml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This is a format job. Pre-commit has a first-party GitHub action, so we use
2-
# that: https://github.com/pre-commit/action
3-
41
name: Format
52

63
on:
@@ -12,17 +9,6 @@ on:
129

1310
jobs:
1411
pre-commit:
15-
name: pre-commit
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v6
19-
- uses: actions/setup-python@v6
20-
- name: Install clang-format
21-
run: sudo apt-get install clang-format
22-
- uses: pre-commit/[email protected]
23-
id: precommit
24-
- name: Upload pre-commit changes
25-
if: failure() && steps.precommit.outcome == 'failure'
26-
uses: rhaschke/upload-git-patch-action@main
27-
with:
28-
name: pre-commit
12+
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-pre-commit.yml@master
13+
with:
14+
ros_distro: rolling

0 commit comments

Comments
 (0)