mirror of
https://github.com/docker/build-push-action.git
synced 2024-12-25 08:12:17 -05:00
f295fbf080
Use Git as default context Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
12 lines
287 B
TypeScript
12 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');
|
|
}
|