File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2222 with :
2323 python-version : 3.11
2424
25- - name : Install dependencies
26- run : pip install -r requirements.txt
27-
2825 - name : Build and package
26+ env :
27+ CHECK_VERSION : " true"
2928 run : |
3029 pip install wheel
3130 python setup.py sdist bdist_wheel
Original file line number Diff line number Diff line change @@ -9,12 +9,13 @@ def read_version():
99
1010
1111def check_tag_version ():
12- tag = os .getenv ("GITHUB_REF" )
13- expected_version = read_version ()
14- if tag != f"refs/tags/{ expected_version } " :
15- raise Exception (
16- f"Tag '{ tag } ' does not match the expected " f"version '{ expected_version } '"
17- )
12+ if os .getenv ("CHECK_VERSION" , "false" ).lower () == "true" :
13+ tag = os .getenv ("GITHUB_REF" )
14+ expected_version = read_version ()
15+ if tag != f"refs/tags/{ expected_version } " :
16+ raise Exception (
17+ f"Tag '{ tag } ' does not match the expected " f"version '{ expected_version } '"
18+ )
1819
1920
2021with open ("README.md" ) as fh :
You can’t perform that action at this time.
0 commit comments