mirror of
https://code.forgejo.org/pnpm/action-setup.git
synced 2025-05-18 20:44:44 +00:00
Enable post action
This commit is contained in:
parent
1790ca7f76
commit
291e58ad85
3 changed files with 6 additions and 2 deletions
|
@ -1,10 +1,13 @@
|
|||
import { setFailed } from '@actions/core'
|
||||
import { setFailed, saveState, 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('is_post')
|
||||
if (isPost === 'true') return
|
||||
saveState('is_post', 'true')
|
||||
const inputs = getInputs()
|
||||
await installPnpm(inputs)
|
||||
console.log('Installation Completed!')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue