diff --git a/.github/workflows/ui-test.yml b/.github/workflows/ui-test.yml index 915e64b8c..774e4a906 100644 --- a/.github/workflows/ui-test.yml +++ b/.github/workflows/ui-test.yml @@ -86,8 +86,8 @@ jobs: - name: Update run: | - docker exec -t prestashop php modules/autoupgrade/bin/console update:start --config-file-path=modules/autoupgrade/config.json --channel=${{ matrix.UPGRADE_CHANNEL }} admin-dev - docker exec -t prestashop chmod 777 -R /var/www/html/var + docker exec -t prestashop php modules/autoupgrade/bin/console update:start --config-file-path=modules/autoupgrade/config.json --channel=${{ matrix.UPGRADE_CHANNEL }} admin-dev + docker exec -t prestashop chmod 777 -R /var/www/html/var - name: Install dependencies working-directory: tests/UI/ @@ -109,8 +109,9 @@ jobs: - name: Rollback run: | - backupName=$(docker exec -t prestashop bash -c "ls -td -- /var/www/html/admin-dev/autoupgrade/backup/*/ | head -n 1 | cut -d'/' -f8 | tr -d '\n'") - docker exec -t prestashop php modules/autoupgrade/bin/console backup:restore --backup=$backupName admin-dev + backupName=$(docker exec -t prestashop bash -c "ls -td -- /var/www/html/admin-dev/autoupgrade/backup/*/ | head -n 1 | cut -d'/' -f8 | tr -d '\n'") + docker exec -t prestashop php modules/autoupgrade/bin/console backup:restore --backup=$backupName admin-dev + docker exec -t prestashop chmod 777 -R /var/www/html/app - name: Run Sanity tests working-directory: tests/UI/