Skip to content

docs(monitoring): keep ${{ github.token }} in the workflow sample - #216

Merged
TMHSDigital merged 1 commit into
TMHSDigital:mainfrom
Ranjithsingh2004:docs/liquid-raw-workflow-sample
Nov 11, 2026
Merged

TMHSDigital merged 1 commit into
TMHSDigital:mainfrom
Ranjithsingh2004:docs/liquid-raw-workflow-sample

Conversation

@Ranjithsingh2004

@Ranjithsingh2004 Ranjithsingh2004 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

The scheduled-workflow sample currently renders as GH_TOKEN: $. Jekyll runs the markdown through Liquid before kramdown sees it, so ${{ github.token }} is a Liquid output tag that evaluates to nothing, and all three GH_TOKEN: lines lose the expression a reader is meant to copy.

Wrapping that one fenced block in {% raw %} / {% endraw %} keeps the expressions literal. Nothing else on the page changes, so the {% include unreleased.html ... %} tags still render. That is also why render_with_liquid: false in the front matter is not the fix here: it would stop every include on the page.

How I checked it: rendered docs/monitoring.md with a Liquid engine before and after the change. Before, the three lines came out as GH_TOKEN: $; after, as GH_TOKEN: ${{ github.token }}; the page's three include tags still rendered in both.

One correction about what this PR cannot show: pages.yml only builds on a push to main that touches docs/** (and on a release), so there is no Pages build on a pull request. The first acceptance criterion, the built page showing the expression, can only be seen once this lands. I could not run jekyll build locally either: no Ruby on this machine, and the Docker daemon is not running. So the Liquid render above is the local evidence, and the merge is the end-to-end check.

Closes #215

Jekyll renders the markdown through Liquid first, so the workflow sample's
three `${{ github.token }}` lines came out as a bare `$`: `GH_TOKEN: $`.
Wrapping that one fenced block in {% raw %} leaves the expressions alone while
the page's {% include %} tags keep rendering.

Closes TMHSDigital#215
@TMHSDigital
TMHSDigital merged commit 3fd0128 into TMHSDigital:main Nov 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Monitoring page sample workflow renders GH_TOKEN as an empty $

2 participants