From dbe37194dd828d438a5e71d64ef03c89ec90a2f7 Mon Sep 17 00:00:00 2001 From: Severin Stampler <31367832+severinstampler@users.noreply.github.com> Date: Wed, 15 Nov 2023 18:48:09 +0100 Subject: [PATCH] Update lint-pr.yml update pr linter --- .github/workflows/lint-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index ff2f3c5..36a2d9e 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -59,7 +59,7 @@ jobs: ``` # Delete a previous comment when the issue has been resolved - - if: ${{ steps.lint_pr_title.outputs.error_message == null && !contains(fromJSON(steps.lint_commit_messages.outputs.results).*.valid, false) }} + - if: ${{ steps.lint_pr_title.outputs.error_message == null && (steps.lint_commit_messages.outputs.results != null && !contains(fromJSON(steps.lint_commit_messages.outputs.results).*.valid, false)) }} uses: marocchino/sticky-pull-request-comment@v2 with: header: pr-title-lint-error