mirror of
https://github.com/crazy-max/ghaction-import-gpg.git
synced 2025-02-21 22:30:56 -05:00
Move PASSPHRASE env var to passphrase input Rename git_user_signingkey input to git-user-signingkey Rename git_commit_gpgsign input to git-commit-gpgsign Rename git_tag_gpgsign input to git-tag-gpgsign Rename git_push_gpgsign input to git-push-gpgsign Rename git_committer_name input to git-committer-name Rename git_committer_email input to git-committer-email
12 lines
329 B
TypeScript
12 lines
329 B
TypeScript
import * as core from '@actions/core';
|
|
|
|
export const IsPost = !!process.env['STATE_isPost'];
|
|
export const gpgPrivateKey = process.env['STATE_gpgPrivateKey'] || '';
|
|
|
|
export function setGpgPrivateKey(gpgPrivateKey: string) {
|
|
core.saveState('gpgPrivateKey', gpgPrivateKey);
|
|
}
|
|
|
|
if (!IsPost) {
|
|
core.saveState('isPost', 'true');
|
|
}
|