Add token test.

This commit is contained in:
Nick Cipollo
2019-08-26 12:15:12 -04:00
parent 0412ec85b5
commit 488aa36d03
4 changed files with 58 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
import * as github from '@actions/github';
import * as core from '@actions/core';
import { Inputs } from './Inputs';
import { Releases } from './Releases';
async function run() {
@@ -8,7 +9,8 @@ async function run() {
const context = github.context
const git = new github.GitHub(token);
const releases = new Releases(context, git)
await releases.create()
const inputs = new Inputs(context)
await releases.create(inputs.tag)
.catch(error => {
core.warning(error)
})