Inspect isPost

This commit is contained in:
khai96_ 2020-05-09 20:47:42 +07:00
parent 1790ca7f76
commit d2316507fd
2 changed files with 7 additions and 1 deletions

View File

@ -26,3 +26,4 @@ inputs:
runs:
using: node12
main: dist/index.js
post: dist/index.js

View File

@ -1,10 +1,15 @@
import { setFailed } from '@actions/core'
import { setFailed, getState, debug } from '@actions/core'
import getInputs from './inputs'
import setOutputs from './outputs'
import installPnpm from './install-pnpm'
import pnpmInstall from './pnpm-install'
async function main() {
const isPost = getState('isPost')
debug(JSON.stringify(isPost))
if (isPost) {
return
}
const inputs = getInputs()
await installPnpm(inputs)
console.log('Installation Completed!')