Skip to content

Commit

Permalink
chore: Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hectoras committed Dec 11, 2023
1 parent 32076fa commit 5c0b05c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/php-md.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ jobs:
- name: Run PHP Mess Detector on modified files
shell: bash
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
FILELIST=$(mktemp /tmp/phpmd-check.XXXXXX)
echo addmod: ${{ steps.changed-files.outputs.all_changed_and_modified_files }}
mapfile -d ',' -t all_files < <(printf '%s,' '${{ steps.files.outputs.all_changed_and_modified_files }}')
for FILE in ${{ steps.changed-files.outputs.all_changed_and_modified_files }}; do
echo addmod: ${{ steps.changed-files.outputs.all_changed_files }}
mapfile -d ',' -t all_files < <(printf '%s,' '${{ steps.changed-files.outputs.all_changed_files }}')
for FILE in ${{ all_files[@] }}; do
EXT="${FILE##*.}"
echo "Changed file: " $FILE ", extension: " $EXT
if [[ "$EXT" == "php" ]]; then
Expand Down

0 comments on commit 5c0b05c

Please sign in to comment.