Skip to content
Snippets Groups Projects

(broker) Copy all files from utils and .py files in repo root to final evaluator

Merged yoogottamk requested to merge broker-copy-utils into master
All threads resolved!
1 file
+ 10
3
Compare changes
  • Side-by-side
  • Inline
+ 10
3
{{- range $path, $bytes := .Files.Glob "**/*.py" -}}
{{- /*
Files which get copied:
- {data,utils}/**
even if data directory has no files, it is kept
*/ -}}
{{- range $path, $bytes := .Files.Glob "data/**" }}
---
# Source: {{ $path }}
{{ $.Files.Get $path -}}
{{- end -}}
{{- range $path, $bytes := .Files.Glob "data/**" }}
{{- range $path, $bytes := .Files.Glob "utils/**" }}
---
# Source: {{ $path }}
{{ $.Files.Get $path -}}
{{- end -}}
{{- if eq (len (.Files.Glob "data/**")) 0 -}}
---
# Source: data/.keep
Loading