Created
April 24, 2024 18:24
-
-
Save kilonzi/239db525ecf03685ca3c09b924097a30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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