Use Env file for workflow output

This commit is contained in:
jspijker 2022-11-18 11:50:10 +01:00
parent cc36da86b1
commit 55040a7040

View File

@ -171,19 +171,19 @@ jobs:
actual_version = f"{latest_branch_version.major}.{bump_up_minor}.{reset_patch}-alpha+{buildmetadata}{channel_metadata}" actual_version = f"{latest_branch_version.major}.{bump_up_minor}.{reset_patch}-alpha+{buildmetadata}{channel_metadata}"
# %% print to output # %% print to output
cmd_name = ["echo", f"::set-output name=name::{project_name}"] cmd_name = ["echo", f"name={project_name} >> $GITHUB_OUTPUT"]
subprocess.call(cmd_name) subprocess.call(cmd_name)
cmd_version = ["echo", f"::set-output name=version::{actual_version}"] cmd_version = ["echo", f"version={actual_version} >> $GITHUB_OUTPUT"]
subprocess.call(cmd_version) subprocess.call(cmd_version)
cmd_channel = ["echo", f"::set-output name=channel::{channel}"] cmd_channel = ["echo", f"channel={channel} >> $GITHUB_OUTPUT"]
subprocess.call(cmd_channel) subprocess.call(cmd_channel)
cmd_id_full= ["echo", f"::set-output name=recipe_id_full::{project_name}/{actual_version}@{user}/{channel}"] cmd_id_full= ["echo", f"recipe_id_full={project_name}/{actual_version}@{user}/{channel} >> $GITHUB_OUTPUT"]
subprocess.call(cmd_id_full) subprocess.call(cmd_id_full)
cmd_id_latest = ["echo", f"::set-output name=recipe_id_latest::{project_name}/latest@{user}/{channel}"] cmd_id_latest = ["echo", f"recipe_id_latest={project_name}/latest@{user}/{channel} >> $GITHUB_OUTPUT"]
subprocess.call(cmd_id_latest) subprocess.call(cmd_id_latest)
cmd_semver_full = ["echo", f"::set-output name=semver_full::{actual_version}"] cmd_semver_full = ["echo", f"semver_full={actual_version} >> $GITHUB_OUTPUT"]
subprocess.call(cmd_semver_full) subprocess.call(cmd_semver_full)
cmd_is_release_branch = ["echo", f"::set-output name=is_release_branch::{str(is_release_branch).lower()}"] cmd_is_release_branch = ["echo", f"is_release_branch={str(is_release_branch).lower()} >> $GITHUB_OUTPUT"]
subprocess.call(cmd_is_release_branch) subprocess.call(cmd_is_release_branch)
print("::group::Conan Recipe Information") print("::group::Conan Recipe Information")
@ -191,7 +191,7 @@ jobs:
print(f"version = {actual_version}") print(f"version = {actual_version}")
print(f"user = {user}") print(f"user = {user}")
print(f"channel = {channel}") print(f"channel = {channel}")
print(f"= {project_name}/{actual_version}@{user}/{channel}") print(f"recipe_id_full = {project_name}/{actual_version}@{user}/{channel}")
print(f"recipe_id_latest = {project_name}/latest@{user}/{channel}") print(f"recipe_id_latest = {project_name}/latest@{user}/{channel}")
print(f"semver_full = {actual_version}") print(f"semver_full = {actual_version}")
print(f"is_release_branch = {str(is_release_branch).lower()}") print(f"is_release_branch = {str(is_release_branch).lower()}")