Skip to content
This repository was archived by the owner on May 1, 2026. It is now read-only.

Commit 67c99e6

Browse files
committed
fix get latest version workflow
1 parent bba1ddb commit 67c99e6

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/get-latest-version.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ name: Latest Version Check
22

33
on:
44
workflow_call:
5+
outputs:
6+
version:
7+
description: "the version string to give to the DLL"
8+
value: ${{jobs.get-version.outputs.version}}
59

610
jobs:
711
get-version:
812
runs-on: windows-latest
13+
outputs:
14+
version: ${{steps.version_handler.outputs.version}}
915
steps:
1016
- uses: actions/checkout@v3
1117

@@ -20,6 +26,7 @@ jobs:
2026
pip install PyGithub
2127
2228
- name: Run version handler
29+
id: version_handler
2330
env:
2431
REPOSITORY: ${{ github.repository }}
2532
REF: ${{ github.ref }}

.github/workflows/version_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
version += "-dev." + dev_release
2929

3030
# Write the version and dev release to GitHub environment variable
31-
with open(os.getenv("GITHUB_ENV"), "a") as env_file:
31+
with open(os.getenv("GITHUB_OUTPUT"), "a", encoding="utf-8") as env_file:
3232
env_file.write(f"VERSION={version}\n")
3333
print(f"VERSION={version}")
3434
if is_dev_branch and dev_release:

0 commit comments

Comments
 (0)