From d2ce2cd71507893c6f0acf837d0b9cab1f3747d4 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 2 Jul 2021 19:53:13 +0300 Subject: actions/run-foo: print actual output --- .github/actions/run-foo/action.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to '.github/actions/run-foo') diff --git a/.github/actions/run-foo/action.yml b/.github/actions/run-foo/action.yml index 9e53df5..3167545 100644 --- a/.github/actions/run-foo/action.yml +++ b/.github/actions/run-foo/action.yml @@ -13,8 +13,14 @@ runs: $actual = & (Join-Path . foo) $actual = $actual -join [Environment]::NewLine - $($actual -eq $expected) -or $(throw @" - Unexpected output: + echo @" + Expected output: + $expected + "@ + echo @" + Actual output: $actual - "@) + "@ + + $($actual -eq $expected) -or $(throw "Unexpected output!") shell: pwsh -- cgit v1.2.3