From 199385fb5fde9c2e8ac0017a452e8d3cc2ad843a Mon Sep 17 00:00:00 2001 From: Thomas Way Date: Fri, 2 Jun 2023 00:08:41 +0100 Subject: [PATCH] .github/workflows: catch no stdout --- .github/workflows/k8s-diff.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/k8s-diff.yaml b/.github/workflows/k8s-diff.yaml index eb3d8a382..3cf72d428 100644 --- a/.github/workflows/k8s-diff.yaml +++ b/.github/workflows/k8s-diff.yaml @@ -70,6 +70,11 @@ jobs: return } + if (!stdout) { + core.warning(`diff returned non-zero exit code, but no stdout`) + return + } + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner,