Skip to content

Commit

Permalink
Fix API file test
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlgo11 committed Jul 31, 2024
1 parent 0dfd901 commit b92202b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- 'entries/**'
- 'img/**'
- 'scripts/*'
workflow_dispatch:

concurrency:
group: 'publish'
Expand Down Expand Up @@ -43,7 +44,7 @@ jobs:
fi
- name: Generate API files
run: node scripts/APIv*.js
run: for script in scripts/APIv*.js; do node "$script"; done

- name: Publish changes to Algolia
if: steps.diff.outputs.entries
Expand Down
2 changes: 1 addition & 1 deletion tests/api_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function checkFiles(){

# Validate expected files in directories
for dir in "${!expected_files[@]}"; do
checkFiles "$dir" "${expected_files[$dir]}"
checkFiles "$dir" ${expected_files[$dir]}
done

exit $status

0 comments on commit b92202b

Please sign in to comment.