Enable post action
This commit is contained in:
parent
1790ca7f76
commit
291e58ad85
@ -26,3 +26,4 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: node12
|
using: node12
|
||||||
main: dist/index.js
|
main: dist/index.js
|
||||||
|
post: dist/index.js
|
||||||
|
BIN
dist/index.js
vendored
BIN
dist/index.js
vendored
Binary file not shown.
@ -1,10 +1,13 @@
|
|||||||
import { setFailed } from '@actions/core'
|
import { setFailed, saveState, getState } from '@actions/core'
|
||||||
import getInputs from './inputs'
|
import getInputs from './inputs'
|
||||||
import setOutputs from './outputs'
|
import setOutputs from './outputs'
|
||||||
import installPnpm from './install-pnpm'
|
import installPnpm from './install-pnpm'
|
||||||
import pnpmInstall from './pnpm-install'
|
import pnpmInstall from './pnpm-install'
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
const isPost = getState('is_post')
|
||||||
|
if (isPost === 'true') return
|
||||||
|
saveState('is_post', 'true')
|
||||||
const inputs = getInputs()
|
const inputs = getInputs()
|
||||||
await installPnpm(inputs)
|
await installPnpm(inputs)
|
||||||
console.log('Installation Completed!')
|
console.log('Installation Completed!')
|
||||||
|
Loading…
Reference in New Issue
Block a user