mirror of
https://github.com/docker/setup-buildx-action.git
synced 2025-06-24 11:51:08 +02:00
Initial commit (docker/build-push-action#87)
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
12
src/state-helper.ts
Normal file
12
src/state-helper.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import * as core from '@actions/core';
|
||||
|
||||
export const IsPost = !!process.env['STATE_isPost'];
|
||||
export const builderName = process.env['STATE_builderName'] || '';
|
||||
|
||||
export function setBuilderName(builderName: string) {
|
||||
core.saveState('builderName', builderName);
|
||||
}
|
||||
|
||||
if (!IsPost) {
|
||||
core.saveState('isPost', 'true');
|
||||
}
|
Reference in New Issue
Block a user