From d3d61496e249d0959a8b2f76ce661cccede8cc30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Barroso=20Galindo?= Date: Fri, 19 Aug 2022 21:56:17 +0200 Subject: [PATCH] Adding CHECK_CHANGED envvar --- .github/calculate_db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/calculate_db.py b/.github/calculate_db.py index b6cdbf5b6..9a5962f75 100755 --- a/.github/calculate_db.py +++ b/.github/calculate_db.py @@ -42,6 +42,7 @@ def main(dryrun): db_file_zip = os.getenv('DB_ZIP_NAME', Path(db_url).name) db_file_json = os.getenv('DB_JSON_NAME', Path(db_url).stem) db_id = envvar('DB_ID') + check_changed = os.getenv('CHECK_CHANGED', 'true') != 'false' tags = Tags() @@ -68,7 +69,7 @@ def main(dryrun): zip_description['target_folder_path'] = external_path(zip_description['target_folder_path']) save_data_to_compressed_json(db, db_file_json, db_file_zip) - if db_has_no_changes(db, db_url): + if check_changed and db_has_no_changes(db, db_url): print('No changes deteted.') return