Skip to content

Commit

Permalink
migrate set-output to the environment file (#1368)
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Nov 7, 2022
1 parent a477f69 commit 803c0e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 803c0e0

Please sign in to comment.