Skip to content

Commit

Permalink
Add framework for using external libs
Browse files Browse the repository at this point in the history
  • Loading branch information
Satya Deep Maheshwari committed Sep 24, 2023
1 parent beb87ba commit e9cbf6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/compare-folders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
cat difference_results.md
- name: Comment on Pull Request
if: env.SUMMARY != ''
uses: peter-evans/create-or-update-comment@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion ext-libs/jslinq/jslinq.min.js

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

5 changes: 4 additions & 1 deletion tools/actions/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,17 @@ try {
mappings.forEach((mapping) => {
const result = isDifferent(mapping.source, mapping.target);
if (result) {
comparisonResults.push(`### :small_orange_diamond: Difference detected between ${mapping.source} and ${mapping.target}
comparisonResults.push(`### :small_orange_diamond: Difference detected between \`${mapping.source}\` and \`${mapping.target}\`
\n#### Execute this to fix the difference: \n \`npm run copy ${mapping.source} ext-libs ${mapping.target.split('/').pop()}\`\n`);
}
});

if (comparisonResults.length > 0) {
fs.writeFileSync('difference_results.md', comparisonResults.join('\n'));
console.log('Comparison results have been written to difference_results.md');
} else {
fs.writeFileSync('difference_results.md', '### :tada: No external libs differences detected :tada:');
console.log('No differences detected');
}
} catch (error) {
fs.writeFileSync('difference_results.md', 'Error reading or processing the JSON file');
Expand Down

0 comments on commit e9cbf6e

Please sign in to comment.