Skip to content

Commit

Permalink
check:data:modules : Modified path
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jul 11, 2024
1 parent b4018ae commit 1ab4b01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/updateModules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: Execute script for updating modules
run: npm run check:data:modules > cron_php_update_modules.txt

- name: Remove prestashop directory
run: rm -rf ./prestashop/

- name: Update PrestaShop packages
id: updated-packages
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/updateModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from 'fs';
import dataModules from '@data/demo/modules';

function getComposerLockVersion(moduleName: string): null|string {
const rawData: string = fs.readFileSync('../prestashop/composer.lock', 'utf8');
const rawData: string = fs.readFileSync('./prestashop/composer.lock', 'utf8');
const jsonData = JSON.parse(rawData);

// eslint-disable-next-line no-restricted-syntax
Expand Down

0 comments on commit 1ab4b01

Please sign in to comment.