Skip to content

Commit d750af9

Browse files
authored
Merge pull request #15 from packagist/add-debug-mode
Increase verbosity of Composer commands in debug mode
2 parents e048fa2 + 602f69d commit d750af9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,16 @@ runs:
4343
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
4444
with:
4545
working-directory: "${{ github.event.client_payload.workingDirectory }}"
46+
composer-options: "${{ github.event.client_payload.settings.debug == true && '-vvv' || '' }}"
4647

4748
- name: Modify requirements in the composer.json
48-
run: "${{ github.event.client_payload.requireCommand.plain }}"
49+
run: "${{ github.event.client_payload.settings.debug == true && github.event.client_payload.requireCommand.debug || github.event.client_payload.requireCommand.plain }}"
4950
if: ${{ github.event.client_payload.requireCommand }}
5051
shell: bash
5152
working-directory: "${{ github.event.client_payload.workingDirectory }}"
5253

5354
- name: Composer update
54-
run: "${{ github.event.client_payload.updateCommand.plain }}"
55+
run: "${{ github.event.client_payload.settings.debug == true && github.event.client_payload.updateCommand.debug || github.event.client_payload.updateCommand.plain }}"
5556
shell: bash
5657
working-directory: "${{ github.event.client_payload.workingDirectory }}"
5758

0 commit comments

Comments
 (0)