Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ jobs:
matrix = full_matrix
else:
matrix = reduced_matrix
print('::set-output name=matrix::' + json.dumps(matrix))
with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
f.write('matrix={}\n'.format(json.dumps(matrix)))
check-matrix:
runs-on: ubuntu-latest
needs: matrix
Expand Down
6 changes: 3 additions & 3 deletions extras/github/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from typing import Dict

def print_output(output: Dict):
for k, v in output.items():
print(f'::set-output name={k}::{v}')

outputs = ['{}={}\n'.format(k, v) for k, v in output.items()]
with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
f.writelines(outputs)

def prep_base_version(environ: Dict):
GITHUB_REF = environ.get('GITHUB_REF')
Expand Down