8000 Don't use `if: always()` in examples. · actions/dependency-review-action@587ff57 · GitHub
[go: up one dir, main page]

Skip to content

Commit 587ff57

Browse files
author
Federico Builes
committed
Don't use if: always() in examples.
1 parent be8bc50 commit 587ff57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/examples.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ jobs:
189189
fail-on-severity: critical
190190
deny-licenses: LGPL-2.0, BSD-2-Clause
191191
- name: 'Report'
192-
if: always() # make sure this step runs even if the previous failed
192+
# make sure this step runs even if the previous failed
193+
if: ${{ failure() && steps.review.conclusion == 'failure' }}
193194
shell: bash
194195
env:
195196
comment: ${{ steps.review.outputs.comment-content }}

0 commit comments

Comments
 (0)
0