Files
github-action-setup-xmake/src/state-helper.ts
T
2025-01-15 23:42:48 +08:00

13 lines
373 B
TypeScript

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