Skip to content

Commit

Permalink
await the git processes to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
CMIP-IPO: Automated GitHub Action committed Nov 18, 2023
1 parent 6ebf6b6 commit 305cda5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/libs/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ def get_latest_tag_info(repo_owner, repo_name, github_token=None):
timestamp_obj = datetime.strptime(commit_dict['commit_date'].lstrip(), "%a %b %d %H:%M:%S %Y %z")
formatted_timestamp = timestamp_obj.strftime("%y/%m/%d %H:%M")

os.popen(f"git add {f}")
os.popen(f"git commit -m '{formatted_timestamp} - {commit_dict['commit_message'][:50]}")
os.popen(f"git add {f}").read()
os.popen(f"git commit -m '{formatted_timestamp} - {commit_dict['commit_message'][:50]}").read()
# os.popen(f"git push").read()


# checksum. If checksum is not the same, update.
Expand Down

0 comments on commit 305cda5

Please sign in to comment.