This repository demonstrates how to run a python script as postprocess step for Github's Flat Data actions.
The idea is basic : Use Deno to trigger the execution of a python script.
This example also shows how to install requirements and write a new file.
-
the Flat Data action is scheduled daily, and download the BTC prices data (as seen in Github Octo's example) and stores it in
btc-price.json
-
the
postprocess.ts
script is then run, triggers the install of python packages, and runs the main python scriptpostprocess.py
. it also forwards the arguments. -
postprocess.py
prints out its received arguments, and then generates a dummy output CSV filedf_output.csv
, for the sake of the example.
- make an example using conda
- Thanks to the Github Octo Team for their friendly advices on Twitter