mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-07 20:37:15 +00:00
:octocat:
This commit is contained in:
+2
-2
@@ -15,10 +15,10 @@ import sys
|
||||
from subprocess import Popen, PIPE
|
||||
|
||||
def get_version():
|
||||
if os.environ.get('READTHEDOCS') == True:
|
||||
if os.environ.get('READTHEDOCS') == 'True':
|
||||
return os.environ.get('READTHEDOCS_VERSION')
|
||||
|
||||
if os.environ.get('GITHUB_ACTIONS') == True:
|
||||
if os.environ.get('GITHUB_ACTIONS') == 'True':
|
||||
return os.environ.get('GITHUB_REF_NAME')
|
||||
|
||||
grep = 'git branch | findstr \*' if platform.system() == 'Windows' else 'git branch | grep \*'
|
||||
|
||||
Reference in New Issue
Block a user