Skip to content

Commit de89d8f

Browse files
Add theme-aware conditional logic flow diagram for step 15 (#1952)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fb601e5 commit de89d8f

3 files changed

Lines changed: 174 additions & 0 deletions

File tree

workshop/15-conditional-logic.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ The approach breaks into three parts:
2424
2. Reference that output using the `steps` context expression `${{ steps.recent.outputs.commit_count }}`.
2525
3. Add a top-level `if:` key in the workflow [frontmatter](https://github.github.com/gh-aw/reference/frontmatter/) that skips the agent job when the count evaluates to zero.
2626

27+
<picture>
28+
<source media="(prefers-color-scheme: dark)" srcset="images/15-conditional-flow-dark.svg">
29+
<source media="(prefers-color-scheme: light)" srcset="images/15-conditional-flow-light.svg">
30+
<img alt="Conditional logic flow: shell step writes commit count to GITHUB_OUTPUT, the if condition evaluates it, then either skips or runs the agent job" src="images/15-conditional-flow-light.svg">
31+
</picture>
32+
2733
### Add a commit-count step
2834

2935
Open your daily-status workflow file (e.g., `.github/workflows/daily-status.md`) and add the following block inside the YAML frontmatter under `steps:`:
Lines changed: 84 additions & 0 deletions
Loading
Lines changed: 84 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)