Skip to content

Commit

Permalink
chore: use append instead of push
Browse files Browse the repository at this point in the history
  • Loading branch information
r4mmer committed Jul 4, 2023
1 parent d958e31 commit 63697f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
outputs = []
if os.environ['GITHUB_OUTPUT']:
outputs.append(os.environ['GITHUB_OUTPUT'])
outputs.push('{name}={value}'.format(name='matrix', value=json.dumps(matrix)))
outputs.append('{name}={value}'.format(name='matrix', value=json.dumps(matrix)))
os.environ['GITHUB_OUTPUT'] = '\n'.join(outputs)
check-matrix:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions extras/github/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
def print_output(output: Dict):
outputs = []
if os.environ['GITHUB_OUTPUT']:
outputs.push(os.environ['GITHUB_OUTPUT'])
outputs.append(os.environ['GITHUB_OUTPUT'])
for k, v in output.items():
outputs.push('{name}={value}'.format(name=k, value=v))
outputs.append('{name}={value}'.format(name=k, value=v))
os.environ['GITHUB_OUTPUT'] += '\n'.join(outputs)

def prep_base_version(environ: Dict):
Expand Down

0 comments on commit 63697f1

Please sign in to comment.