mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-18 15:31:54 +00:00
Fixes #199 --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
13 lines
435 B
TypeScript
13 lines
435 B
TypeScript
// https://github.com/actions/checkout/blob/v4/src/state-helper.ts
|
|
import * as core from '@actions/core'
|
|
|
|
/**
|
|
* Indicates whether the POST action is running
|
|
*/
|
|
export const IsPost = !!core.getState('isPost')
|
|
|
|
// Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
|
|
// This is necessary since we don't have a separate entry point.
|
|
if (!IsPost) {
|
|
core.saveState('isPost', 'true')
|
|
}
|