Print output from bash shell

My action has the following step:

- name: Validate Backlog Configurations and Work Items
        run: |
          chmod 755 ./validate.sh
          ./validate.sh

The validate.sh file looks like the following (basically loops a directory and runs a python script):

#!/bin/sh

for d in ./workitems/*/ ; do
    main.py -t test --validate-only "$d"
done

The python script prints some info.

If I run the validation script locally (MacOS), then the python output displays correctly.
However, the action logs aren’t showing the output.

How do I fix this? Thanks!

Fixed it…

validation.sh now looks like:

#!/bin/sh

for d in ./workitems/*/ ; do
    echo `main.py -t test --validate-only "$d"`
done

I needed to “echo” the results.