Skip to content

Commit 2f5884a

Browse files
committed
Report issue when IDE compatibility problem is encountered
1 parent 93268ea commit 2f5884a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/check-ide-compatibility.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,42 @@ jobs:
5454
${{ runner.os }}-gradle-ide-compatibility-
5555
5656
- name: Check compatibility
57+
id: check-compatibility
5758
run: ./gradlew verifyPlugin --info --stacktrace
5859

5960
- name: Upload report
6061
uses: actions/upload-artifact@v4
62+
if: ${{ always() }}
6163
with:
6264
name: plugin-verifier-reports
6365
path: build/reports/pluginVerifier/**
6466
if-no-files-found: warn
67+
68+
- name: Find already existing issue
69+
id: find-issue
70+
if: ${{ always() }}
71+
run: |
72+
echo "number=$(gh issue list -l 'bug' -l 'automated' -L 1 -S 'in:title \"IDE Compatibility Problem\"' -s 'open' --json 'number' --jq '.[].number')" >> $GITHUB_OUTPUT
73+
env:
74+
GH_TOKEN: ${{ github.token }}
75+
76+
- name: Close issue if everything is fine
77+
if: ${{ success() && steps.find-issue.outputs.number != '' }}
78+
run: gh issue close -r 'not planned' ${{ steps.find-issue.outputs.number }}
79+
env:
80+
GH_TOKEN: ${{ github.token }}
81+
82+
- name: Reformat report
83+
if: ${{ failure() && steps.check-compatibility.conclusion == 'failure' }}
84+
run: |
85+
echo 'Encountered problems during plugin verification' > reported.md
86+
echo 'Please check the build logs for details' >> reported.md
87+
88+
- name: Create Issue From File
89+
if: ${{ failure() && steps.check-compatibility.conclusion == 'failure' }}
90+
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
91+
with:
92+
issue-number: ${{ steps.find-issue.outputs.number }}
93+
title: IDE Compatibility Problem
94+
content-filepath: ./reported.md
95+
labels: bug, automated

0 commit comments

Comments
 (0)