From 803c0e06f2b703d30b18e168e7349ffc66e7fa86 Mon Sep 17 00:00:00 2001 From: ICHINOSE Shogo Date: Mon, 7 Nov 2022 21:26:59 +0900 Subject: [PATCH] migrate set-output to the environment file (#1368) --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b558eba28..703203258 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,6 +20,7 @@ jobs: id: set-matrix run: | import json + import os go = [ # Keep the most recent production release at the top '1.19', @@ -55,7 +56,8 @@ jobs: 'include': includes } output = json.dumps(matrix, separators=(',', ':')) - print('::set-output name=matrix::{0}'.format(output)) + with open(os.environ["GITHUB_OUTPUT"], 'a', encoding="utf-8") as f: + f.write('matrix={0}\n'.format(output)) shell: python test: needs: list