diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index 3db3edb..975e95e 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -1,6 +1,6 @@ # Workflow to test automatic uploading to Sciebo -name: Upload Testfile +name: Upload data # Controls when the action will run. Workflow runs when manually triggered using the UI # or API. diff --git a/calc_all.py b/calc_all.py index 7f386d0..a76cc1a 100644 --- a/calc_all.py +++ b/calc_all.py @@ -218,7 +218,8 @@ def calc_checksum(): print("#"*50) print("Calculating the checksum.") t1 = time.time() - datestr = "-".join([str(x) for x in time.localtime()[:3]]) + # datestr format YYYY-MM-DD + datestr = "-".join([str(x).zfill(2) for x in time.localtime()[:3]]) checksum = subprocess.run(["md5sum", "data-"+datestr+".tar.gz"], capture_output=True, text=True).stdout with open("data-"+datestr+".tar.gz-CHECKSUM", 'w') as f: