Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Aug 2, 2024
1 parent fc652d0 commit 1546fcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/branchCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ jobs:
import re
def version() :
versions = {}
versionRe = re.compile( r"^(gaffer.*Version.*) = (\S+)" )
with open( "SConstruct" ) as sconstruct :
for line in sconstruct.readlines() :
versionMatch = versionRe.match( line )
if versionMatch :
versions[versionMatch.group( 1 )] = versionMatch.group( 2 ).strip( "'\"" )
version = [ int( gafferMilestoneVersion ), int( gafferMajorVersion ) ]
return [ int( versions["gafferMilestoneVersion"] ), int( versions["gafferMajorVersion"] ) ]
currentVersion = version()
print( currentVersion )
Expand Down

0 comments on commit 1546fcb

Please sign in to comment.