Public Access
Properly terminating execution if invalid input caused an exception (closes #1)
This commit is contained in:
@@ -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
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user