mirror of
https://github.com/dagger/dagger-for-github.git
synced 2026-01-02 13:20:11 +11:00
12 lines
308 B
TypeScript
12 lines
308 B
TypeScript
import * as core from '@actions/core';
|
|
|
|
export const IsPost = !!process.env['STATE_isPost'];
|
|
export const cleanup = /true/i.test(process.env['STATE_cleanup'] || '');
|
|
|
|
export function setCleanup(cleanup: boolean) {
|
|
core.saveState('cleanup', cleanup);
|
|
}
|
|
|
|
if (!IsPost) {
|
|
core.saveState('isPost', 'true');
|
|
}
|