File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,15 @@ jobs:
36
36
run : pip install panther_analysis_tool
37
37
38
38
- name : Check packs
39
- continue-on-error : true
40
39
id : check-packs
41
40
run : |
42
41
# Get the output for the PR comment body
43
- panther_analysis_tool check-packs 2> $GITHUB_OUTPUT
42
+ panther_analysis_tool check-packs 2> errors.txt || true
43
+ echo ::set-output name=errors::`cat errors.txt`
44
+
45
+ - name : Check packs (Exit Code)
46
+ run : |
47
+ exit $(panther_analysis_tool check-packs)
44
48
45
49
- name : Comment PR
46
50
uses : thollander/actions-comment-pull-request@v3
@@ -54,15 +58,10 @@ jobs:
54
58
${{ steps.check-packs.outputs.errors }}
55
59
```
56
60
comment-tag : check-packs
61
+
57
62
- name : Delete comment
58
63
uses : thollander/actions-comment-pull-request@v3
59
64
if : success()
60
65
with :
61
66
mode : delete
62
- comment-tag : check-packs
63
- - name : Fail Action
64
- if : failure()
65
- uses : actions/github-script@v3
66
- with :
67
- script : |
68
- core.setFailed('There were issues with packs. Please resolve them.')
67
+ comment-tag : check-packs
You can’t perform that action at this time.
0 commit comments