add push
This commit is contained in:
parent
3135f99f80
commit
91a5a79e29
2 changed files with 12 additions and 1 deletions
11
.github/workflows/updater.yml
vendored
11
.github/workflows/updater.yml
vendored
|
@ -16,3 +16,14 @@ steps:
|
|||
- cd updater
|
||||
- pipenv --python /usr/bin/python3.9 run pip install requests_cache
|
||||
- pipenv --python /usr/bin/python3.9 run python main.py
|
||||
|
||||
- name: push
|
||||
image: appleboy/drone-git-push
|
||||
pull: if-not-exists
|
||||
settings:
|
||||
branch: main
|
||||
remote: git@git.nelim.org:matt1432/android_vendor_mulchwebview.git
|
||||
commit: true
|
||||
commit_message: "Updated APK"
|
||||
ssh_key:
|
||||
from_secret: ssh
|
||||
|
|
|
@ -29,7 +29,7 @@ def update_if_needed(module: str, release: ApkRelease):
|
|||
version_code_file.close()
|
||||
|
||||
print('commit and push...')
|
||||
git.add_commit_push(module_dir, 'Update {} to {}'.format(module, release.version_name))
|
||||
# git.add_commit_push(module_dir, 'Update {} to {}'.format(module, release.version_name))
|
||||
|
||||
elif version_code > release.version_code:
|
||||
print('{} ahead of suggested version ({} > {})'.format(module, version_code, release.version_code))
|
||||
|
|
Loading…
Reference in a new issue