import * as core from '@actions/core' ; export const IsPost = ! ! process . env [ 'STATE_isPost' ] ; export const registry = process . env [ 'STATE_registry' ] || '' ; export const logout = /true/i . test ( process . env [ 'STATE_logout' ] || '' ) ; export function setRegistry ( registry ) { core . saveState ( 'registry' , registry ) ; } export function setLogout ( logout ) { core . saveState ( 'logout' , logout ) ; } if ( ! IsPost ) { core . saveState ( 'isPost' , 'true' ) ; }