diff --git a/.github/workflows/lint-pr-title-preview-outputErrorMessage b/.github/workflows/lint-pr-title-preview-outputErrorMessage index 2a96a0bf4..0a1b9bdd6 100644 --- a/.github/workflows/lint-pr-title-preview-outputErrorMessage +++ b/.github/workflows/lint-pr-title-preview-outputErrorMessage @@ -23,7 +23,7 @@ jobs: - uses: marocchino/sticky-pull-request-comment@v2 # When the previous steps fails, the workflow would stop. By adding this # condition you can continue the execution with the populated error message. - if: always() + if: always() && (steps.lint_pr_title.outputs.error_message != null) with: header: pr-title-lint-error message: | diff --git a/README.md b/README.md index 21fb237c7..77ccd5062 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ jobs: - uses: marocchino/sticky-pull-request-comment@v2 # When the previous steps fails, the workflow would stop. By adding this # condition you can continue the execution with the populated error message. - if: always() + if: always() && (steps.lint_pr_title.outputs.error_message != null) with: header: pr-title-lint-error message: |