A github action for drawing items from a file randomly.
nameThe name of the draw in the output file (useful if you wish to don't want to rely on the filename)drawPrefixThe prefix for any files in a dir you wish to draw from. The default is "draw-"inputDirThe directory of files you wish to choose randomly from. The default is.outputDirThe directory where you wish the randomly selected output to go. The default is.outputPrefixFiles in theoutputDirwill be prefixed with this. Useful so you don't overwrite files if you're using the same directory for input and output.. The default isdraw-countThe number of items to draw from each filedrandURLThe drand endpoint you wish to use for the draw. The default ishttps://api.drand.sh
There is a husky pre-commit hook that runs the build. In order to function as a github action, the index.js build artifact must be built and in the repo root directory