Skip to content

Commit 6561b8e

Browse files
committed
separate check-packs output step and check-packs error step
1 parent bca8a49 commit 6561b8e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/check-packs.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,15 @@ jobs:
3636
run: pip install panther_analysis_tool
3737

3838
- name: Check packs
39-
continue-on-error: true
4039
id: check-packs
4140
run: |
4241
# 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)
4448
4549
- name: Comment PR
4650
uses: thollander/actions-comment-pull-request@v3
@@ -54,15 +58,10 @@ jobs:
5458
${{ steps.check-packs.outputs.errors }}
5559
```
5660
comment-tag: check-packs
61+
5762
- name: Delete comment
5863
uses: thollander/actions-comment-pull-request@v3
5964
if: success()
6065
with:
6166
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

0 commit comments

Comments
 (0)