1
0
Files
build-push-action/src/state-helper.ts
T

13 lines
287 B
TypeScript
Raw Normal View History

2020-09-02 10:07:11 +02:00
import * as core from '@actions/core';
export const IsPost = !!process.env['STATE_isPost'];
export const tmpDir = process.env['STATE_tmpDir'] || '';
export function setTmpDir(tmpDir: string) {
core.saveState('tmpDir', tmpDir);
}
if (!IsPost) {
core.saveState('isPost', 'true');
}