diff --git a/.github/scripts/convert_airtable_to_csv.py b/.github/scripts/convert_airtable_to_csv.py index 54fe859e2..ea8a61cad 100644 --- a/.github/scripts/convert_airtable_to_csv.py +++ b/.github/scripts/convert_airtable_to_csv.py @@ -13,6 +13,7 @@ def convert_airtable_to_csv(airtable_api_key, airtable_base_id,airtable_table_id base = Airtable(airtable_base_id, airtable_table_id, airtable_api_key) records = base.get_all() with open(file_path, 'w') as f: + print("Writing to {0}".format(file_path)) writer = csv.writer(f) writer.writerow(records[0]["fields"].keys()) for record in records: @@ -20,8 +21,10 @@ def convert_airtable_to_csv(airtable_api_key, airtable_base_id,airtable_table_id if __name__ == "__main__": + print("Getting environmental variables") airtable_api_key = os.environ.get('AIRTABLE_API_KEY') airtable_base_id = os.environ.get('AIRTABLE_BASE_ID') airtable_table_id = os.environ.get('AIRTABLE_TABLE_NAME') - convert_airtable_to_csv(airtable_api_key, airtable_base_id,airtable_table_id, file_path) \ No newline at end of file + print("Converting AirTable base to CSV file") + convert_airtable_to_csv(airtable_api_key, airtable_base_id,airtable_table_id, file_path)