Skip to content

Commit

Permalink
Use outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Jan 23, 2025
1 parent 3982211 commit f28692a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-plugin-archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,15 @@ jobs:
run: |
# If no config file, bail
if [ ! -f "scoper.inc.php" ]; then
echo "No Php-Scoper config file found (scoper.inc.php). Aborting..."
echo "scoper_failed=1" >> $GITHUB_OUTPUT
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"
- name: Move code to the `build/` directory
if: ${{ failure() && steps.php-scoper.conclusion == 'failure' }}
if: steps.php-scoper.outputs.scoper_failed == '1'
run: |
shopt -s extglob dotglob
mkdir build
Expand Down

0 comments on commit f28692a

Please sign in to comment.