generated from jnooree/c-like-templ
-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (42 loc) · 1004 Bytes
/
pr-lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Project NuriKit - Copyright 2023 SNU Compbio Lab.
# SPDX-License-Identifier: Apache-2.0
#
name: Lint PR
on:
pull_request:
branches:
- main
- "release/**"
types:
- opened
- reopened
- synchronize
- ready_for_review
defaults:
run:
shell: bash
jobs:
check-files:
runs-on: ubuntu-latest
outputs:
config-changed: ${{ steps.changed-files.outputs.any_changed }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: changed-files
uses: tj-actions/changed-files@v45
with:
since_last_remote_commit: true
files: |
**.clang-*
scripts/run_clang_tools.sh
run-clang-tools:
needs: [check-files]
uses: ./.github/workflows/_run-clang-tools.yaml
with:
files-changed-only: ${{ needs.check-files.outputs.config-changed == 'false' }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true