Skip to content

Commit

Permalink
fix: removed template string
Browse files Browse the repository at this point in the history
  • Loading branch information
hexnickk4997 committed Jan 9, 2024
1 parent 2fdc4f8 commit 86be4e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/fetch-audits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:

- name: Create fetcher script
run: |
echo "const API_URL = 'https://api.github.com/repos/lidofinance/audits/contents/';
cat <<EOF > /tmp/fetch-audits.js
const API_URL = 'https://api.github.com/repos/lidofinance/audits/contents/';
async function countPdfFiles(path = '') {
const response = await fetch(API_URL + path);
Expand All @@ -40,9 +41,10 @@ jobs:
}
countPdfFiles().then(count => {
console.log(`count: ${count}`);
console.log('count', count);
});
" > /tmp/fetch-audits.js
EOF
- name: Execute fetcher script
run: node /tmp/fetch-audits.js

0 comments on commit 86be4e5

Please sign in to comment.