From 6eb237a86df8f0844b9674e09c8983bccae46468 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Sat, 9 May 2020 21:43:19 +0700 Subject: [PATCH] Only warn on failure of post action --- src/pnpm-store-prune/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pnpm-store-prune/index.ts b/src/pnpm-store-prune/index.ts index ef93bac..9ff0887 100644 --- a/src/pnpm-store-prune/index.ts +++ b/src/pnpm-store-prune/index.ts @@ -1,5 +1,5 @@ import { spawnSync } from 'child_process' -import { setFailed } from '@actions/core' +import { warning } from '@actions/core' import { Inputs } from '../inputs' import { patchPnpmEnv } from '../utils' @@ -17,12 +17,12 @@ export function pruneStore(inputs: Inputs) { }) if (error) { - setFailed(error) + warning(error) return } if (status) { - setFailed(`command pnpm store prune exits with code ${status}`) + warning(`command pnpm store prune exits with code ${status}`) return } }