Skip to content

Commit

Permalink
Update output display to job summary
Browse files Browse the repository at this point in the history
  • Loading branch information
csalerno-asml committed Oct 2, 2023
1 parent 1b08cbc commit 321fa1b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions action.yml
Expand Up @@ -36,10 +36,14 @@ runs:
- name: black
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
python $GITHUB_ACTION_PATH/action/main.py | tee -a $GITHUB_STEP_SUMMARY
out=$(python $GITHUB_ACTION_PATH/action/main.py)
else
python3 $GITHUB_ACTION_PATH/action/main.py | tee -a $GITHUB_STEP_SUMMARY
out=$(python3 $GITHUB_ACTION_PATH/action/main.py)
fi
echo "\`\`\`python" >> $GITHUB_STEP_SUMMARY
echo "${out}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
env:
# TODO: Remove once https://github.com/actions/runner/issues/665 is fixed.
INPUT_OPTIONS: ${{ inputs.options }}
Expand Down

0 comments on commit 321fa1b

Please sign in to comment.