GitHub Actions anatomy
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
read and write a workflow file.
Planned topics
- Workflows are YAML files in
.github/workflows/. on:sets triggers (push, pull request, tags, manual).- A workflow has
jobs; a job runs on a runner (runs-on: ubuntu-latest) and hassteps. - A step is either
uses:(a reusable action) orrun:(a shell command). - Secrets are stored in repository settings and read as
${{ secrets.NAME }}; they are masked in logs. - Pin action versions; verify current versions before recording.
Draft outline details
Demonstration
name: ci
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "hello"Check your understanding
Where do workflow files live?
Show answer
.github/workflows/.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.