build.sh titles the catalogue with $CATALOGUE_TITLE, if it's set. env: sets variables for the steps' scripts, at three levels:
yaml
name: CI
on: push
env:
CATALOGUE_TITLE: Weekend Sale # every job
jobs:
build:
runs-on: ubuntu-latest
env:
CATALOGUE_TITLE: Weekend Sale # every step of this job
steps:
- uses: actions/checkout@v7
- run: ./build.sh
env:
CATALOGUE_TITLE: Weekend Sale # this step onlySet it once, at the level you need. When two levels set the same name, the one closest to the step wins.
The repository also has an Env demo workflow that sets TITLE at all three levels. Its run is already in gh run list.
Objectives
- Title the catalogue Weekend Sale.
- Which TITLE did the demo's step print?