File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 22
22
with :
23
23
python-version : 3.11
24
24
25
- - name : Install dependencies
26
- run : pip install -r requirements.txt
27
-
28
25
- name : Build and package
26
+ env :
27
+ CHECK_VERSION : " true"
29
28
run : |
30
29
pip install wheel
31
30
python setup.py sdist bdist_wheel
Original file line number Diff line number Diff line change @@ -9,12 +9,13 @@ def read_version():
9
9
10
10
11
11
def 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
+ )
18
19
19
20
20
21
with open ("README.md" ) as fh :
You can’t perform that action at this time.
0 commit comments