GitHub Actions expressions combine literals, contexts, and functions
Answer: An expression in GitHub Actions may use literal values, context references, functions, and operators.
Status checks and hashes
hashFiles returns a single hash for the set of files that matches the path pattern. The path is relative to the GITHUB_WORKSPACE directory.
Notes
You must use single quotes around the string.
See also
Claims
- id: C1 claim: An expression can be any combination of literal values, context references, or functions. source: S2 evidence: "An expression can be any combination of literal values, references to a context, or functions."
- id: C2 claim: You can combine literals, context references, and functions using operators. source: S2 evidence: "You can combine literals, context references, and functions using operators."
- id: C3 claim: hashFiles returns a single hash for the set of files that matches the path pattern. source: S1 evidence: "Returns a single hash for the set of files that matches the path pattern."
- id: C4 claim: The hashFiles path is relative to the GITHUB_WORKSPACE directory. source: S1 evidence: "The path is relative to the GITHUB_WORKSPACE directory"
Sources
- [S1] Evaluate expressions in workflows and actions. GitHub Docs. https://docs.github.com/en/actions/reference/workflows-and-actions/expressions . License: CC-BY-4.0. Accessed 2026-11-23.
- [S2] Expressions (GitHub Docs source). github/docs (GitHub). https://github.com/github/docs/blob/main/content/actions/concepts/workflows-and-actions/expressions.md . License: CC-BY-4.0. Accessed 2026-11-23.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, Evaluate expressions in workflows and actions; github/docs (GitHub), Expressions (GitHub Docs source). CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, Evaluate expressions in workflows and actions; github/docs (GitHub), Expressions (GitHub Docs source). CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE). Copyright GitHub, Inc.
Cite this
iinventedlight. 2026. "GitHub Actions expressions combine literals, contexts, and functions." iinventedlight Library, iil:note:nr0rtehg, version of 2026-11-23. https://iinventedlight.com/library/notes/github-actions-expressions/. License: CC-BY-4.0.
@misc{iil_note_nr0rtehg,
author = {{iinventedlight}},
title = {{GitHub Actions expressions combine literals, contexts, and functions}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-23},
url = {https://iinventedlight.com/library/notes/github-actions-expressions/},
note = {Permanent ID iil:note:nr0rtehg. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- github-actions-expressions.schema.json (schema; CC-BY-4.0)
- github-actions-expressions.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/github-actions-expressions.md.