mise-action/src/state-helper.ts
Amadeusz Kryze 79b896a39d
feat(action): moved save cache to post step (#321)
Fixes #199

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-20 15:52:34 -06:00

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')
}