Skip to content

Commit

Permalink
Fix variable name for GitHub output (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Oct 14, 2022
1 parent a966e00 commit 7977e0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -128,6 +128,8 @@ jobs:
- test
- docs
- pre-commit
- check_local_actions
- generate-changelog
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
Expand Down
4 changes: 2 additions & 2 deletions jupyter_releaser/util.py
Expand Up @@ -397,8 +397,8 @@ def latest_draft_release(gh, branch=None):
def actions_output(name, value):
"""Handle setting an action output on GitHub"""
log(f"\n\nSetting output {name}={value}")
if "GITHUB_ENV" in os.environ:
with open("GITHUB_ENV", "a") as fid:
if "GITHUB_OUTPUT" in os.environ:
with open("GITHUB_OUTPUT", "a") as fid:
fid.write(f"{name}={value}\n")


Expand Down

0 comments on commit 7977e0e

Please sign in to comment.