ci: Pass version explicitly and don't rely on tags (#2904)

This commit is contained in:
Ayaz Salikhov
2026-01-12 17:31:09 +00:00
committed by GitHub
parent a7ac7b54a8
commit e733fadb45
6 changed files with 55 additions and 51 deletions

View File

@@ -37,6 +37,10 @@ inputs:
description: Whether to generate Debian package
required: true
default: "false"
version:
description: Version of the clio_server binary
required: false
default: ""
runs:
using: composite
@@ -67,6 +71,9 @@ runs:
# This way it works both for PRs and pushes to branches.
GITHUB_BRANCH_NAME: "${{ github.head_ref || github.ref_name }}"
GITHUB_HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
#
# If tag is being pushed, or it's a nightly release, we use that version.
FORCE_CLIO_VERSION: ${{ inputs.version }}
run: |
cmake \
-B "${BUILD_DIR}" \