Skip to content

Commit

Permalink
chore: check for gasCompare file in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkharvar committed Nov 7, 2023
1 parent 4461b41 commit 3734645
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -156,8 +156,11 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const fs = require('fs');
if (!fs.existsSync('gasCompareOutput.md')) {
console.log('No gasCompareOutput.md file found.');
return;
}
const markdown = fs.readFileSync('gasCompareOutput.md', 'utf8');
// Check if markdown content is not empty
if (markdown.trim().length) {
await github.rest.issues.createComment({
Expand Down

0 comments on commit 3734645

Please sign in to comment.