Skip to content

Commit

Permalink
fixes lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zgosalvez committed Dec 17, 2023
1 parent f13fe0e commit 89cb649
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion 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: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ async function run() {
jobHasError = runAssertions(uses, allowlist, isDryRun);
} else if (steps !== undefined) {
for (const step of steps) {
jobHasError ||= runAssertions(step['uses'], allowlist, isDryRun);
if (!jobHasError) {
jobHasError = runAssertions(step['uses'], allowlist, isDryRun);
}
}
} else {
core.warning(`The "${job}" job of the "${basename}" workflow does not contain uses or steps.`);
Expand Down

0 comments on commit 89cb649

Please sign in to comment.