Update version in GitHub Actions workflow .yaml files
Source: R/util-update_workflow_version.R
update_workflow_version.RdUpdate version in GitHub Actions workflow .yaml files
Usage
update_workflow_version(
dir = "inst/gha_templates/workflows",
description_path = "DESCRIPTION",
label = "# gsm.utils GHA version",
recursive = TRUE,
add_if_missing = TRUE
)Arguments
- dir
stringpath to directory containing GitHub Actions workflow.yamlfiles- description_path
stringpath toDESCRIPTIONfile- label
stringlabel to identify version line in workflow files- recursive
booleanwhether to search directories recursively- add_if_missing
booleanwhether to add version line if missing