Steps and Actions
A workflow is made up of one or more Jobs. Jobs run in parallel by default. Each job runs inside its own virtual machine runner.
Inside a job, you define a sequence of Steps.
Steps
A step can either run a shell command or use an Action (a reusable chunk of code written by the community).
jobs:
build:
runs-on: ubuntu-latest
steps:
# 1. Use a pre-built action to checkout the code
- name: Checkout code
uses: actions/checkout@v4
# 2. Run a shell command
- name: Say Hello
run: echo "Hello World!"
# 3. Run multiple shell commands
- name: Setup
run: |
mkdir temp
cd temp
touch file.txt
booting...