Skip to content

Commit

Permalink
Implement via reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
godexsoft committed Jan 15, 2024
1 parent ce86572 commit 677aabb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
paths:
- .clang_tidy
- .github/workflows/clang-tidy.yml

workflow_call:
secrets: inherit
jobs:
clang_tidy:
runs-on: [self-hosted, Linux]
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/clang-tidy_on_fix_merged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: On clang-tidy auto fixes merged
on:
pull_request:
types: [closed]
branches: [develop]

jobs:
on_fix_merge:
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.labels.*.name == '[CI] clang-tidy auto fixes' }}
uses: ./.github/workflows/clang-tidy.yml

0 comments on commit 677aabb

Please sign in to comment.