From ecb3b5f092103ec6db9947486a40976e141747e2 Mon Sep 17 00:00:00 2001 From: SlightlyCircuitous <71394296+SlightlyCircuitous@users.noreply.github.com> Date: Sat, 9 Mar 2024 18:48:11 -0500 Subject: [PATCH] Replace set-output in python code --- .github/workflows/updateversion.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/updateversion.yml b/.github/workflows/updateversion.yml index 30ce2c0..a5be0b9 100644 --- a/.github/workflows/updateversion.yml +++ b/.github/workflows/updateversion.yml @@ -101,6 +101,7 @@ jobs: id: version shell: python run: | + import os import re previous = "${{steps.date.outputs.previous}}" date = "${{steps.date.outputs.date}}" @@ -124,7 +125,8 @@ jobs: else: charlist.append("a") version += "".join(reversed(charlist)) - print(f"::set-output name=version::{version}") + with open(os.environ['GITHUB_OUTPUT'], 'a') as envFile: + print(f"version={version}", file=envFile) - name: Update date in files if: steps.check.outputs.update == 'true'