Open dieffrei opened 4 years ago
You can see the output if you give the step an id and then echo the result from that step:
- name: 'Show devhub limits'
id: devhublimits
uses: forcedotcom/salesforcedx-actions@master
with:
args: 'force:limits:api:display -u ${{ secrets.SALESFORCE_DEVHUB_USERNAME }}'
- name: 'Show devhub limits output'
run: |
result="${{ steps.devhublimits.outputs.result }}"
echo "$result"
Something I haven't figured out is how to make it print the newlines instead of squashing everything into one line. In a normal sh you can do this with double quotes around the variable:
$ result=$(sh -c ls)
$ echo "$result"
config
force-app
README.md
scripts
sfdx-project.json
Unfortunately this isn't working with salesforcedx-actions.
This is my yml file:
When a command fails like SFDX force:push I can not see the output error. Are there any option which I can see the output of commands?