Rename main.ts to Main.ts

This commit is contained in:
Nick Cipollo
2019-08-23 15:30:38 -04:00
committed by GitHub
parent c9a81096d5
commit 50fc0ceb99

23
src/Main.ts Normal file
View File

@@ -0,0 +1,23 @@
import * as github from '@actions/github';
import * as core from '@actions/core';
import { Releases } from './Releases';
async function run() {
try {
const token = core.getInput('token');
const context = github.context
const git = new github.GitHub(token);
const releases = new Releases(context, git)
await releases.create()
.catch(error => {
core.warning(error)
})
.then(response => {
core.warning(`response: ${response}`)
})
} catch (error) {
core.setFailed(error.message);
}
}
run();