Skip to content

Commit 8e8d743

Browse files
committed
Capture qodana logs on failure
1 parent 2fe197f commit 8e8d743

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/qodana.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,17 @@ jobs:
1717
pull-requests: write
1818
checks: write
1919
steps:
20-
- uses: actions/checkout@v3
21-
with:
22-
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
23-
fetch-depth: 0 # a full history is required for pull request analysis
24-
- name: 'Qodana Scan'
25-
uses: JetBrains/qodana-action@v2023.2
26-
env:
27-
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
20+
- uses: actions/checkout@v3
21+
with:
22+
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
23+
fetch-depth: 0 # a full history is required for pull request analysis
24+
- name: 'Qodana Scan'
25+
uses: JetBrains/qodana-action@v2023.2
26+
env:
27+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
28+
- name: Upload results to artifacts on failure
29+
if: failure()
30+
uses: actions/upload-artifact@v3
31+
with:
32+
name: qodana_results
33+
path: ${{ runner.temp }}/qodana/results

0 commit comments

Comments
 (0)