We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39916fb commit fbcaa1aCopy full SHA for fbcaa1a
.github/workflows/test.yaml
@@ -45,6 +45,8 @@ jobs:
45
- name: Run action (inputs expected)
46
uses: ./
47
id: print_inputs
48
+ with:
49
+ add_to_summary: 'true'
50
- name: Check output (inputs expected)
51
run: |
52
echo "Action output:"
@@ -56,6 +58,14 @@ jobs:
56
58
echo "Test failed: Inputs were not printed as expected for workflow_dispatch event"
57
59
exit 1
60
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
69
70
test-env-vars:
71
runs-on: ubuntu-latest
0 commit comments