Skip to content

Commit

Permalink
Test for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
LEGRAND Francois committed Sep 7, 2023
1 parent ae13472 commit 12e984d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion grand/dataio/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.12
1.0.13
12 changes: 3 additions & 9 deletions scripts/hooks/update_rootfile_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,8 @@ def update_version(repo):
repo = git.Repo('./')

filenames = (diff_obj.a_path for diff_obj in repo.index.diff('HEAD'))
print(filenames)
if watchedfile in filenames:
print("FILE " + watchedfile + "IS FOUND")
for filename in filenames:
print(filename)
if filename==watchedfile:
print("ACTION")
update_version(repo)
else:
print("Nothing to do")
print(watchedfile + " found, updating " + versionfile)
update_version(repo)


0 comments on commit 12e984d

Please sign in to comment.