From 5d0a8017439ec58bfe5e19eeb4ae0df00f162f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leynier=20Guti=C3=A9rrez=20Gonz=C3=A1lez?= Date: Tue, 31 Mar 2020 03:21:01 -0400 Subject: [PATCH] Implement mimification --- main.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index 7326d28..09cdd08 100644 --- a/main.py +++ b/main.py @@ -1,13 +1,11 @@ -import os -import requests # noqa We are just importing this to prove the dependency installed correctly +from json import dump, load +from os import makedirs def main(): - my_input = os.environ["INPUT_MYINPUT"] - - my_output = f"Hello {my_input}" - - print(f"::set-output name=myOutput::{my_output}") + makedirs('data/mini', exist_ok=True) + data = load(open('data/covid19-cuba.json')) + dump(data, open('data/mini/covid19-cuba.json', 'w')) if __name__ == "__main__":