Skip to content
Ameen Abozaid
Planned lessonJNR-051-L02

GitHub Actions anatomy

  • Lesson 2 of 7
  • Junior
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 has steps.
  • A step is either uses: (a reusable action) or run: (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

yaml
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.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.