Cleanup error classes and CI

This commit is contained in:
Nick Cipollo
2021-03-23 16:15:29 -04:00
parent 9b14e2e2d3
commit 8f0b206fd3
17 changed files with 386 additions and 370 deletions

View File

@@ -5,15 +5,15 @@ import { GithubReleases } from './Releases';
import { Action } from './Action';
import { GithubArtifactUploader } from './ArtifactUploader';
import { FileArtifactGlobber } from './ArtifactGlobber';
import { ErrorMessage } from './ErrorMessage';
import { GithubError } from './GithubError';
async function run() {
try {
const action = createAction()
await action.perform()
} catch (error) {
const errorMessage = new ErrorMessage(error)
core.setFailed(errorMessage.toString());
const githubError = new GithubError(error)
core.setFailed(githubError.toString());
}
}