Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Added error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Luuk van Houdt committed May 13, 2021
1 parent fdd6214 commit b566170
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ async function run(inject = {}) {
}

function getChangelogAndLatest(releases, inject) {
if (!Array.isArray(releases)) {
throw new Error(`Expected array but got ${typeof releases}`);
}

const getInput = inject.getInput || core.getInput;

const latest = { tag: null, date: null };
Expand Down

0 comments on commit b566170

Please sign in to comment.