diff --git a/.github/workflows/ci-comment-failures.yml b/.github/workflows/ci-comment-failures.yml index 699ee234eb5fa..2329c6c140e04 100644 --- a/.github/workflows/ci-comment-failures.yml +++ b/.github/workflows/ci-comment-failures.yml @@ -104,7 +104,7 @@ jobs: script: | var fs = require('fs'); var issue_number = Number(fs.readFileSync('./NR')); - if (existsSync('./missing-metadata')) { + if (fs.existsSync('./missing-metadata')) { await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, @@ -112,7 +112,7 @@ jobs: body: 'You added a new example but didn't add metadata for it. Please update the root Cargo.toml file.' }); } - if (existsSync('./missing-update')) { + if (fs.existsSync('./missing-update')) { await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo,