Add action class stub

This commit is contained in:
Nick Cipollo
2019-08-26 17:24:46 -04:00
parent 7375770ad3
commit 4e291a9639
2 changed files with 14 additions and 2 deletions

12
src/Action.ts Normal file
View File

@@ -0,0 +1,12 @@
import { Inputs } from "./Inputs";
import { Releases } from "./Releases";
export class Action {
private inputs: Inputs
private releases: Releases
constructor(inputs: Inputs, releases: Releases) {
this.inputs = inputs
this.releases = releases
}
}

View File

@@ -11,7 +11,7 @@ export class Releases {
this.git = git
}
create(
async create(
tag: string,
body?: string,
commitHash?: string,
@@ -29,7 +29,7 @@ export class Releases {
})
}
uploadArtifact(
async uploadArtifact(
assetUrl: string,
contentLength: number,
contentType: string,