You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,9 @@ jobs:
19
19
steps:
20
20
- uses: jonpugh/goatscripts@v1
21
21
```
22
+
## Scripts
23
+
- `run-with-summary`: Runs a command and generates a markdown summary with output and execution details.
24
+
- `wait-for`: Runs a command repeatedly until it passes.
22
25
23
26
## Run With Summary
24
27
@@ -70,3 +73,17 @@ jobs:
70
73
Set SUMMARY env var to add *any* markdown **you want** to the report file.
71
74
```
72
75
76
+
## wait-for
77
+
78
+
Use for pausing scripts until a command passes.
79
+
80
+
Use cases:
81
+
82
+
- Docker containers that have to wait for a database server to start
83
+
- Test scripts that have to wait for your project to initialize.
84
+
- Better than "sleep": Sometimes you need to wait. Instead of sleeping a fixed number of seconds, run a command that will pass once the thing you need is ready.
0 commit comments