Skip to content

Commit

Permalink
fix(tools): better conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Carrigan committed Dec 15, 2021
1 parent 2f27b81 commit 18792df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/require-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number,
});
if (files.data[0].filename !== "dist/index.js") {
if (!files.data.find(file => file.filename === "dist/index.js")) {
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand Down

0 comments on commit 18792df

Please sign in to comment.