GitHub Actions by Example: Hello World
GitHub Actions is configured by writing “workflows”. Workflows define sequences of commands written in YAML and must be located under the directory This example workflow prints “Hello world”, followed by “Step 1…”, “Step 2…”, “Step 3…”, and finally “Goodbye”. |
|
|
|
We must specify what events trigger the workflow to run. In this case we run it every time someone pushes to the repo. |
|
|
|
|
|
A |
|
|
|
|
|
|
|
|
|
Finally, do stuff! Run a command using the operating system’s shell. |
|
|
|
|
|
Use the pipe, |
|
|
|
|
|
|
|
|
|
|
|
|
Next example: Event Triggers