Skip to content

Commit

Permalink
Update test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
shayki5 authored Jul 25, 2024
1 parent e37bad8 commit ce85d87
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,22 @@ jobs:
echo "Test failed: Inputs were not printed as expected for workflow_dispatch event"
exit 1
fi
- name: Check GitHub Summary
run: |
echo "Debug Info:"
echo "${{ steps.run_action.outputs.debug_info }}"
echo "Summary Content:"
echo "Summary Content from output:"
echo "${{ steps.run_action.outputs.summary_content }}"
echo "Summary Content from file (if exists):"
if [ -f summary_content.txt ]; then
cat summary_content.txt
else
echo "summary_content.txt does not exist"
fi
summary_content="${{ steps.run_action.outputs.summary_content }}"
if [[ "$summary_content" == *"<details>"* ]] && [[ "$summary_content" == *"test_name"* ]] && [[ "$summary_content" == *"test_number"* ]]; then
echo "Test passed: Inputs were added to GitHub Summary in collapsible format"
Expand All @@ -73,7 +82,14 @@ jobs:
echo "Summary content:"
echo "$summary_content"
echo "GitHub Step Summary content:"
cat $GITHUB_STEP_SUMMARY
if [ -f "$GITHUB_STEP_SUMMARY" ]; then
cat $GITHUB_STEP_SUMMARY
else
echo "$GITHUB_STEP_SUMMARY file does not exist"
fi
echo "Workflow inputs:"
echo "test_name: ${{ github.event.inputs.test_name }}"
echo "test_number: ${{ github.event.inputs.test_number }}"
exit 1
fi
Expand Down

0 comments on commit ce85d87

Please sign in to comment.