neurobagel / workflows

MIT License
0 stars 1 forks source link

Dependabot cannot update template wf with variables? #97

Closed alyssadai closed 3 weeks ago

alyssadai commented 1 month ago

Related to:

The template workflow https://github.com/neurobagel/workflows/blob/main/template_workflows/auto_release/build_docker_on_release.yml uses jinja-style variables in its body as placeholders for different repo names, as documented here: https://github.com/BetaHuhn/repo-file-sync-action?tab=readme-ov-file#using-templates.

The issue is that dependabot seems to have problems parsing this template .yml file (possibly because the variable syntax means the file is no longer technically valid YAML).

Here's the result of manually triggering dependabot to check for updates: image

As a result, the versions of GH actions used in build_docker_on_release.yml cannot be properly updated, meaning that whenever a change to these templates is synced to other repos, the updated versions of actions used in those repos is rolled back in the PR.

As an alternative, we may want to look into inheritable templates instead in https://github.com/BetaHuhn/repo-file-sync-action?tab=readme-ov-file#using-templates.

alyssadai commented 3 weeks ago

This will be fixed by https://github.com/neurobagel/workflows/pull/103 which removes the use of {{ }} intended for variable interpolation (which is used only by the sync.yml and cannot be parsed by other GH Actions wfs).