3
0
Fork 0
mirror of https://gitea.com/docker/build-push-action.git synced 2024-11-26 19:39:45 +01:00
docker-build-push/src/state-helper.ts
CrazyMax f295fbf080
Add secrets input
Use Git as default context

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-09-02 10:07:11 +02:00

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