From 6ea4a4d4afdcca83a08486081535f9c61cb2f68d Mon Sep 17 00:00:00 2001 From: Vasily Nemkov Date: Tue, 28 Jan 2025 20:26:57 +0000 Subject: [PATCH] Triggering workflow by tag + fixed generating version from tag --- .github/workflows/release_branches.yml | 2 ++ tests/ci/build_check.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_branches.yml b/.github/workflows/release_branches.yml index 7a7cd617dbfa..1b7f0a244d5a 100644 --- a/.github/workflows/release_branches.yml +++ b/.github/workflows/release_branches.yml @@ -24,6 +24,8 @@ on: # yamllint disable-line rule:truthy push: branches: - 'releases/24.8**' + tags: + - '*' workflow_dispatch: jobs: diff --git a/tests/ci/build_check.py b/tests/ci/build_check.py index 384435311069..5b59fb92c7aa 100644 --- a/tests/ci/build_check.py +++ b/tests/ci/build_check.py @@ -179,8 +179,8 @@ def main(): official_flag = True if pr_info.event_type == EventType.PUSH \ - and pr_info.ref.startswith('/ref/tags/'): - tag_name = pr_info.ref.removeprefix('/ref/tags/') + and pr_info.ref.startswith('refs/tags/'): + tag_name = pr_info.ref.removeprefix('refs/tags/') version_type = tag_name.split('.')[-1] version._flavour = version_type logging.info("Using version from tag: %s => %s", tag_name, version)