mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add .github/workflows/templates/README.md
This readme explains what the directory contains, and how it should be used. Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
972c71c7fa
commit
76e449951b
1 changed files with 20 additions and 0 deletions
20
.github/workflows/templates/README.md
vendored
Normal file
20
.github/workflows/templates/README.md
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Workflow Templates
|
||||
|
||||
The templates are used to generate the actual workflows that run on GitHub Actions.
|
||||
They use [Jinja2](https://jinja.palletsprojects.com) as the template engine.
|
||||
|
||||
## To Note
|
||||
|
||||
Let's try to keep the Jinja usage to the bare minimum because, as time passes,
|
||||
the complexity just piles up making it harder to read and interpret the templates.
|
||||
|
||||
### Changes To Default Jinja Syntax
|
||||
|
||||
By default Jinja uses `{% ... %}`, `{{ ... }}`, `{# ... #}`, etc to do it's magic.
|
||||
In order not to clash with the GitHub Actions syntax, and to also avoid having to
|
||||
add bunch of `{% raw %} ... {% endraw %}` blocks, we changed some things:
|
||||
|
||||
* Instead of `{%` and `%}` use `<%` and `%>`
|
||||
* Instead of `{{` and `}}` use `<{` and `}>`
|
||||
|
||||
The rest of Jinja2 defaults apply.
|
Loading…
Add table
Reference in a new issue