mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
20 lines
556 B
Python
20 lines
556 B
Python
# This file is part of the Indico plugins.
|
|
# Copyright (C) 2002 - 2024 CERN
|
|
#
|
|
# The Indico plugins are free software; you can redistribute
|
|
# them and/or modify them under the terms of the MIT License;
|
|
# see the LICENSE file for more details.
|
|
|
|
import sys
|
|
import tomllib
|
|
from pathlib import Path
|
|
|
|
|
|
data = tomllib.loads(Path('_meta/pyproject.toml').read_text())
|
|
version = data['project']['version']
|
|
tag_version = sys.argv[1]
|
|
|
|
if tag_version != version:
|
|
print(f'::error::Tag version {tag_version} does not match package version {version}')
|
|
sys.exit(1)
|