Compare commits

...

5 Commits

Author SHA1 Message Date
khai96_
271a9df5fb Try different ways 2020-05-09 20:57:00 +07:00
khai96_
3b5e8836ec Update dist/index.js 2020-05-09 20:52:54 +07:00
khai96_
0fa2b7d3a5 Use console.log 2020-05-09 20:52:27 +07:00
khai96_
c3e0d9f20f Update dist/index.js 2020-05-09 20:50:21 +07:00
khai96_
d2316507fd Inspect isPost 2020-05-09 20:47:42 +07:00
3 changed files with 11 additions and 1 deletions

View File

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

BIN
dist/index.js vendored

Binary file not shown.

View File

@ -1,10 +1,19 @@
import { setFailed } from '@actions/core'
import { setFailed, getState } 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')
console.log({
is_post: getState('is_post'),
isPost: getState('isPost'),
STATE_isPost: process.env['STATE_isPost'],
})
if (isPost) {
return
}
const inputs = getInputs()
await installPnpm(inputs)
console.log('Installation Completed!')