Missing output.log file
rizvisx opened this issue · 4 comments
Complains of this
cat: /home/runner/work/xyz/project/output.log: No such file or directory
Hi @rizvisx ,
Please see the Example Composer repository which I use as a sandbox for demonstrating how to use this action.
In the CI.yml, we pass the output.log
file to the upload-artifact
action, so we can analyse the output through Github's web interface. See here: https://github.com/php-actions/example-composer/blob/check-output/.github/workflows/ci.yaml#L22
Then, we can download the artifact here: https://github.com/php-actions/example-composer/actions/runs/789885119 (see debug-output
link near the bottom of the page).
I hope this shows that the output.log
file is indeed present on the action runner, but I'm happy to help diagnose your issue further. Are you aware that files are not persisted between the different workflows?
Cheers,
Greg.
Hi again...
I made another example workflow that simply does cat /home/runner/work/example-composer/example-composer/output.log
.
You can see the workflow running here: https://github.com/php-actions/example-composer/runs/2450332073?check_suite_focus=true
The workflow is defined here: https://github.com/php-actions/example-composer/blob/master/.github/workflows/ci-show-output-log.yml
I hope this helps you! If you are still having problems, please feel free to reopen this issue - I'm happy to help.
Greg.
Hi @g105b
I should have been more descriptive with my question.
The error shown below shows up in the composer action, and it doesn't show any more details even with --verbose
set.
Run php-actions/composer@v5
with:
progress: yes
args: --verbose
version: latest
php_version: latest
command: install
interaction: no
dev: yes
quiet: no
cat: /home/runner/work/my-project/my-project/output.log: No such file or directory
Error: Process completed with exit code 1.
So, it doesn't reach to next steps i.e. Upload artifacts or check contents of output.log
Thanks for quick reply !!
Can you compare your workflow yml file with the known-to-be-working files in the example composer repository and see any difference in configuration?