docs/data/variables
Felicity Chapman 6def5ee54b
Update for roll-out of Billing vNext to GitHub Team plans (#53060)
Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com>
Co-authored-by: amrithss <89491847+amrithss@users.noreply.github.com>
2024-11-13 16:38:21 +00:00
..
README.md
actions.yml
code-scanning.yml
codespaces.yml
command_line.yml
contact.yml
copilot.yml
dependabot.yml
dependency-review.yml
dependency-submission-api.yml
desktop.yml
enterprise.yml
explore.yml
gists.yml
large_files.yml
location.yml
migrations.yml
package_registry.yml
product.yml
projects.yml
release-phases.yml
rest.yml
search.yml
secret-scanning.yml
visual_studio.yml
webhooks.yml

README.md

Variables

Variables are short strings of reusable text.

The YAML files in this directory each contain multiple variables.

The path, filename, and keys within each YAML file determine what its path will be in the data object.

For example, given a file data/variables/foo/bar.yml:

# multiple short strings in one file
meaning_of_life: 42

# and they can be nested if needed
nested:
  values:
    too: Yes!

Its values would be accessible as:

{% data foo.bar.meaning_of_life %}

{% data foo.bar.nested.values.too %}