mirror of
https://github.com/docker/build-push-action.git
synced 2024-11-23 17:26:10 +08:00
13 lines
287 B
TypeScript
13 lines
287 B
TypeScript
|
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');
|
||
|
}
|