Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
build-push-action/src/state-helper.ts
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Git as default context Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
12 lines (9 sloc)
287 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | |
} |