gpg/src/state-helper.ts

13 lines
317 B
TypeScript
Raw Normal View History

import * as core from '@actions/core';
2020-05-03 14:46:05 -04:00
export const IsPost = !!process.env['STATE_isPost'];
export const fingerprint = process.env['STATE_fingerprint'] || '';
export function setFingerprint(fingerprint: string) {
core.saveState('fingerprint', fingerprint);
}
2020-05-03 14:46:05 -04:00
if (!IsPost) {
core.saveState('isPost', 'true');
2020-05-03 14:46:05 -04:00
}