Skip to content

Commit 2805447

Browse files
authored
tee output to console (#6)
This should hopefully help in debugging. `$GITHUB_STEP_SUMMARY` is an "environment file" provided by GitHub Actions, so we can treat it just like a file and use `tee` to append data to it. Based on an idea by @oscargus raised in #4. https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-job-summary https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#environment-files
1 parent 48caa85 commit 2805447

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
- run: ${{ inputs.command }}
1515
shell: bash
1616

17-
- run: $GITHUB_ACTION_PATH/bin/diff-check >> $GITHUB_STEP_SUMMARY
17+
- run: $GITHUB_ACTION_PATH/bin/diff-check | tee -a $GITHUB_STEP_SUMMARY
1818
shell: bash
1919
env:
2020
GITHUB_ACTION_PATH: ${{ github.action_path }}

0 commit comments

Comments
 (0)