diff options
author | j.spijker@ultimaker.com <jelle spijker> | 2022-07-15 09:34:30 +0300 |
---|---|---|
committer | Jelle Spijker <j.spijker@ultimaker.com> | 2022-07-15 09:34:30 +0300 |
commit | 2b808daa4ee55c6a09eb531f8e6dd4c5f481a803 (patch) | |
tree | 03ff760c0bcb3ee74fc52cc548bf0e39e189d208 /.github | |
parent | 12eb5f15d16ebc908938644d221a2cae5d3c39a2 (diff) |
Add major_minor output for easier release branch detection
Contributes to CURA-9365
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/conan-recipe-version.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/conan-recipe-version.yml b/.github/workflows/conan-recipe-version.yml index ea1915c5cb..a042e231c9 100644 --- a/.github/workflows/conan-recipe-version.yml +++ b/.github/workflows/conan-recipe-version.yml @@ -20,6 +20,10 @@ on: description: "The full semver <Major>.<Minor>.<Patch>-<PreReleaseTag>+<BuildMetaData>" value: ${{ jobs.get-semver.outputs.semver_full }} + major_minor: + description: "The release branch name <Major>.<Minor>" + value: ${{ jobs.get-semver.outputs.major_minor }} + recipe_user: description: "The conan user" value: ${{ jobs.get-semver.outputs.user }} @@ -37,6 +41,7 @@ jobs: recipe_id_full: ${{ steps.get-conan-broadcast-data.outputs.recipe_id_full }} recipe_id_latest: ${{ steps.get-conan-broadcast-data.outputs.recipe_id_latest }} semver_full: ${{ steps.get-conan-broadcast-data.outputs.semver_full }} + major_minor: ${{ steps.get-conan-broadcast-data.outputs.major_minor }} user: ${{ steps.get-conan-broadcast-data.outputs.user }} channel: ${{ steps.get-conan-broadcast-data.outputs.channel }} @@ -127,6 +132,8 @@ jobs: else: actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.lower()}+{no_commits}" + major_minor = f"{latest_branch_version.major}.{latest_branch_version.minor}" + # %% print to output cmd_name = ["echo", f"::set-output name=name::{project_name}"] subprocess.call(cmd_name) @@ -140,6 +147,8 @@ jobs: subprocess.call(cmd_id_latest) cmd_semver_full = ["echo", f"::set-output name=semver_full::{actual_version}"] subprocess.call(cmd_semver_full) + cmd_major_minor = ["echo", f"::set-output name=major_minor::{major_minor}"] + subprocess.call(cmd_major_minor) print("::group::Conan Recipe Information") print(f"name = {project_name}") @@ -149,5 +158,6 @@ jobs: print(f"recipe_id_full = {project_name}/{actual_version}@{user}/{channel}") print(f"recipe_id_latest = {project_name}/latest@{user}/{channel}") print(f"semver_full = {actual_version}") + print(f"major_minor = {major_minor}") print("::endgroup::") shell: python |