process import

This commit is contained in:
softprops
2019-09-09 20:16:58 +09:00
parent 6ef3c4f0b3
commit e48a25bf4e
3 changed files with 5 additions and 3 deletions

View File

@ -3,10 +3,11 @@ import { paths, parseConfig, isTag } from './util';
import { release, upload } from './github';
import { setFailed } from '@actions/core';
import { GitHub } from '@actions/github';
import { env } from 'process';
async function run() {
try {
const config = parseConfig(process.env);
const config = parseConfig(env);
if (!isTag(config.github_ref)) {
throw new Error(`⚠️ GitHub Releases requires a tag`);
}