From 467e931a5301924642fa5781794443ff41e4f393 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Tue, 17 Aug 2021 14:14:06 +0700 Subject: [PATCH] version build --- filters.sh | 8 ++++++++ version.py | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 version.py diff --git a/filters.sh b/filters.sh index f91ce4b..f07fd7c 100644 --- a/filters.sh +++ b/filters.sh @@ -14,3 +14,11 @@ git commit -m "Schedule Building : `date`" git reflog expire --all --expire=now git gc --prune=now --aggressive git push -u origin $INPUT_REPO_BRANCH +cd /repros +python3 /repros/$INPUT_ACTION_FILE +git config --local user.name $INPUT_GIT_NAME +git config --local user.email $INPUT_GIT_EMAIL +git add . +git commit -m "Schedule Building : `date`" +git reflog expire --all --expire=now +git gc --prune=now --aggressive diff --git a/version.py b/version.py new file mode 100644 index 0000000..4fec546 --- /dev/null +++ b/version.py @@ -0,0 +1,11 @@ +import re +import datetime +import pytz + +UTC = pytz.utc +date = datetime.datetime.now(UTC) + +def build(incoming): + with open(incoming, 'w') as f: + f.write('\n'.join([str(date)])) + f.close()