-
Notifications
You must be signed in to change notification settings - Fork 46
41 lines (40 loc) · 1.11 KB
/
code_quality.yml
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
name: Qodana
on:
workflow_dispatch:
push:
branches:
- main
- 'releases/*'
pull_request:
branches:
- '*'
paths-ignore:
- '**/release_draft.yml'
- '**/maven*.yml'
jobs:
qodana:
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Get changed files'
uses: tj-actions/changed-files@v41
id: changed-files-specific
with:
files_yaml: |
doc:
- '**/*.md'
- '**/docs/**'
- '**/*.jpg'
- '**/*.png'
- name: 'Check changed files'
id: changed-files
if: ${{steps.changed-files-specific.outputs.doc_only_changed == 'false' && steps.changed-files-specific.outputs.doc_only_modified == 'false'}}
run: echo "ONLY_DOCS=false" >> $GITHUB_OUTPUT
- name: 'Qodana Scan'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
uses: JetBrains/qodana-action@v2023.3.1
with:
use-caches: false