Skip to content

Commit fbcaa1a

Browse files
authored
Update test.yaml
1 parent 39916fb commit fbcaa1a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/test.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
- name: Run action (inputs expected)
4646
uses: ./
4747
id: print_inputs
48+
with:
49+
add_to_summary: 'true'
4850
- name: Check output (inputs expected)
4951
run: |
5052
echo "Action output:"
@@ -56,6 +58,14 @@ jobs:
5658
echo "Test failed: Inputs were not printed as expected for workflow_dispatch event"
5759
exit 1
5860
fi
61+
- name: Check GitHub Summary
62+
run: |
63+
if grep -q "<details>" $GITHUB_STEP_SUMMARY && grep -q "test_name" $GITHUB_STEP_SUMMARY && grep -q "test_number" $GITHUB_STEP_SUMMARY; then
64+
echo "Test passed: Inputs were added to GitHub Summary in collapsible format"
65+
else
66+
echo "Test failed: Inputs were not added to GitHub Summary as expected"
67+
exit 1
68+
fi
5969
6070
test-env-vars:
6171
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)