update_yml | R Documentation |
Updates YAML templates to their latest versions. Currently only GitHub Actions and Circle CI templates are supported.
update_yml(template_in = NULL, template_out = NULL)
template_in |
|
template_out |
|
By default all workflow files starting with tic
are matched. This
means that you can have multiple YAML files with update support, e.g.
"tic.yml"
and "tic-db.yml"
.
To ensure that updating of tic templates works, ensure the following points:
Your template contains the type (e.g. linux-matrix-deploy) and the revision date in its first two lines.
When inserting comments into custom code blocks, only one-line comments are allowed. Otherwise the update heuristic gets in trouble.
yaml_templates
## Not run:
# auto-search
update_yml()
update_yml("tic.yml")
# custom named templates
update_yml("custom-name.yml")
# full paths
update_yml("~/path/to/repo/.github/workflows/tic.yml")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.