mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 18:44:19 +00:00
process import
This commit is contained in:
parent
6ef3c4f0b3
commit
e48a25bf4e
3 changed files with 5 additions and 3 deletions
|
@ -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`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue