1
0
mirror of https://github.com/minoplhy/filters-maker.git synced 2024-12-22 18:18:13 +00:00

version build

This commit is contained in:
minoplhy 2021-08-17 14:14:06 +07:00
parent fdddb86d11
commit 467e931a53
2 changed files with 19 additions and 0 deletions

View File

@ -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

11
version.py Normal file
View File

@ -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()