From a07521c6e1557cec5091da17afdda0f994598fbe Mon Sep 17 00:00:00 2001 From: Leonid Makarov Date: Wed, 21 Apr 2021 13:54:37 -0700 Subject: [PATCH] Fix test pass/failure check in Github Actions config --- .github/workflows/default.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/default.yaml b/.github/workflows/default.yaml index cd2618c7..09f54afb 100644 --- a/.github/workflows/default.yaml +++ b/.github/workflows/default.yaml @@ -189,7 +189,9 @@ jobs: SECRET_PLATFORMSH_CLI_TOKEN: ${{ secrets.SECRET_PLATFORMSH_CLI_TOKEN }} SECRET_TERMINUS_TOKEN: ${{ secrets.SECRET_TERMINUS_TOKEN }} # Run tests and set output status (used by downstream jobs) - run: make test && echo "::set-output name=status::pass" || echo "::set-output name=status::fail" + run: | + make test + [[ $? == 0 ]] && "::set-output name=status::pass" || echo "::set-output name=status::fail" - # Print image info name: Docker image info