Skip to content

Commit

Permalink
Conditionally run php-scoper
Browse files Browse the repository at this point in the history
if there is no config it creates it and runs, we need to avoid that
  • Loading branch information
mmaymo committed Jan 23, 2025
1 parent b063375 commit ad2ba9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-plugin-archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ jobs:
- name: Run PHP-Scoper
id: php-scoper
run: |
# If no config file, bail
if [ ! -f "scoper.inc.php" ]; then
echo "No Php-Scoper config file found (scoper.inc.php). Aborting..."
exit 1
fi
php-scoper add-prefix --force --output-dir=build --no-interaction
composer --working-dir=build dump-autoload -o
sed -i "s/'__composer_autoload_files'/\'__composer_autoload_files_${{ github.sha }}'/g" "build/vendor/composer/autoload_real.php"
Expand Down

0 comments on commit ad2ba9d

Please sign in to comment.