Skip to content

Commit ae1e152

Browse files
author
Aaron Roller
committed
format must happen in branch. protected master AM-258/package-format
1 parent 7228b0a commit ae1e152

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/package.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,13 @@ jobs:
3838
uses: repo-sync/pull-request@v2
3939
with:
4040
pr_draft: true
41-
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
code-format:
43+
runs-on: ubuntu-18.04
44+
needs: package
45+
steps:
46+
- uses: actions/checkout@v2
47+
- name: Format Code
48+
uses: AutoModality/action-ros-clang-format@master
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ on:
44
branches:
55
- master
66
jobs:
7-
code-format:
8-
runs-on: ubuntu-18.04
9-
steps:
10-
- uses: actions/checkout@v2
11-
- name: Format Code
12-
uses: AutoModality/action-ros-clang-format@master
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
157
release:
168
runs-on: ubuntu-18.04
179
steps:

0 commit comments

Comments
 (0)