Only warn on failure of post action
This commit is contained in:
parent
b1febf84ed
commit
6eb237a86d
@ -1,5 +1,5 @@
|
|||||||
import { spawnSync } from 'child_process'
|
import { spawnSync } from 'child_process'
|
||||||
import { setFailed } from '@actions/core'
|
import { warning } from '@actions/core'
|
||||||
import { Inputs } from '../inputs'
|
import { Inputs } from '../inputs'
|
||||||
import { patchPnpmEnv } from '../utils'
|
import { patchPnpmEnv } from '../utils'
|
||||||
|
|
||||||
@ -17,12 +17,12 @@ export function pruneStore(inputs: Inputs) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
setFailed(error)
|
warning(error)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status) {
|
if (status) {
|
||||||
setFailed(`command pnpm store prune exits with code ${status}`)
|
warning(`command pnpm store prune exits with code ${status}`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user