You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, template variables are only expanded within file contents. It would be nice to be able to also expand them inside file names. One potential use case for this is to create a $REPO_NAME directory for storing a template Python module with the same name as the repository.
One potential issue with directly allowing variables in file names is that this could potentially induce non-determinant behaviour depending on the order in which the files are renamed. We could simply error if renaming a file results in overwriting another file, however.
The text was updated successfully, but these errors were encountered:
clarfonthey
changed the title
Template files/directories with customisable naems
Template files/directories with customisable names
Jan 7, 2021
An alternate route could be a gitea actions trigger for when a template is uses. That would allow for completely customizable behavior when using templates
Description
Right now, template variables are only expanded within file contents. It would be nice to be able to also expand them inside file names. One potential use case for this is to create a
$REPO_NAME
directory for storing a template Python module with the same name as the repository.One potential issue with directly allowing variables in file names is that this could potentially induce non-determinant behaviour depending on the order in which the files are renamed. We could simply error if renaming a file results in overwriting another file, however.
The text was updated successfully, but these errors were encountered: