3
0
Fork 0
mirror of https://gitea.com/docker/build-push-action.git synced 2024-11-26 11:29:38 +01:00
docker-build-push/src/state-helper.ts

13 lines
287 B
TypeScript
Raw Normal View History

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