A github action for drawing items from a file randomly.
name
The name of the draw in the output file (useful if you wish to don't want to rely on the filename)drawPrefix
The prefix for any files in a dir you wish to draw from. The default is "draw-"inputDir
The directory of files you wish to choose randomly from. The default is.
outputDir
The directory where you wish the randomly selected output to go. The default is.
outputPrefix
Files in theoutputDir
will 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-
count
The number of items to draw from each filedrandURL
The 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