From 84551c108391137b67ff7d6050081bd2d9b89406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Negru=C8=9Biu?= Date: Thu, 6 Jun 2024 11:22:48 +0300 Subject: [PATCH] Workflow experiments --- .github/workflows/experiments.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/experiments.yml b/.github/workflows/experiments.yml index 9a41613..ec5173c 100644 --- a/.github/workflows/experiments.yml +++ b/.github/workflows/experiments.yml @@ -31,8 +31,9 @@ jobs: date = datetime.now(tz=timezone.utc) print(f"VERSION={date.year}.{date.month}.{date.day}.${{github.run_attempt}}") print(f"run_id=${{github.run_id}}, run_number=${{github.run_number}}, run_attempt=${{github.run_attempt}}") - with open(os.getenv('GITHUB_OUTPUT'), 'w') as fout: - fout.write(f"VERSION={date.year}.{date.month}.{date.day}.${{github.run_attempt}}") + print(f"GITHUB_OUTPUT={os.getenv('GITHUB_OUTPUT')}") + with open(os.getenv('GITHUB_OUTPUT'), "a") as fout: + fout.write(f"VERSION={date.year}.{date.month}.{date.day}.${{github.run_number}}") - name: Print version shell: cmd