Properly terminating execution if invalid input caused an exception (closes #1)

This commit is contained in:
svartalf
2019-10-10 11:16:23 +03:00
parent 569b46e9ff
commit 60242e0faa
3 changed files with 8 additions and 3 deletions
+6
View File
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- Invalid input properly terminates Action execution (#1)
## [1.0.0] - 2019-10-09
### Added
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -2
View File
@@ -82,9 +82,8 @@ export async function run(actionInput: input.Input): Promise<void> {
}
async function main(): Promise<void> {
const actionInput = input.get();
try {
const actionInput = input.get();
await run(actionInput);
} catch (error) {
core.setFailed(error.message);