From 91a5a79e297e9fa10fb2441ccf7d8ae6fa75318c Mon Sep 17 00:00:00 2001
From: matt1432 <matt@nelim.org>
Date: Wed, 8 Mar 2023 17:26:30 -0500
Subject: [PATCH] add push

---
 .github/workflows/updater.yml | 11 +++++++++++
 updater/main.py               |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml
index f66173f..f0ab2c6 100644
--- a/.github/workflows/updater.yml
+++ b/.github/workflows/updater.yml
@@ -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
diff --git a/updater/main.py b/updater/main.py
index f3249ff..5715967 100644
--- a/updater/main.py
+++ b/updater/main.py
@@ -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))