Skip to content

Instantly share code, notes, and snippets.

@kilonzi
Created April 24, 2024 18:24
Show Gist options
  • Save kilonzi/239db525ecf03685ca3c09b924097a30 to your computer and use it in GitHub Desktop.
Save kilonzi/239db525ecf03685ca3c09b924097a30 to your computer and use it in GitHub Desktop.
version 1.0
workflow GenerateMD5 {
input {
File input_file
}
call ComputeMD5 {
input: file_to_hash = input_file
}
output {
String md5sum = ComputeMD5.md5_hash
}
}
task ComputeMD5 {
input {
File file_to_hash
}
command {
md5sum ~{file_to_hash} | cut -d ' ' -f 1
}
output {
String md5_hash = read_string(stdout())
}
runtime {
docker: "ubuntu:latest"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment