manus-skills/.kortix/opencode/skills/coding/Push-to-GitHub/scripts/push.py
zhukang 1c7abd81d1 All 310 Manus skill-hub community skills as a Kortix marketplace registry
- 310 registry:skill items, 1528 files, 7 categories (hub tags)
- registry.json generated by @kortix/registry buildRegistry
- nested SKILL.md in sn-da-* renamed SUBSKILL.md (no phantom skills)
- provenance + licenses: SOURCES.md
2026-09-15 13:37:20 +08:00

47 lines
1.4 KiB
Python
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import subprocess
import sys
def run_command(command):
print(f"Running: {command}")
try:
subprocess.run(command, check=True, shell=True)
except subprocess.CalledProcessError:
print(f"❌ Command failed: {command}")
sys.exit(1)
def main():
print("🚧 Starting Pre-Push Checks...")
# 1. Verify (Tests)
print("\n1️⃣ Running Unit Tests across all modules...")
run_command("./gradlew testLocalDebugUnitTest jvmTest testAndroidHostTest")
# 2. Check Code (Lint/Analysis)
print("\n2️⃣ Running Code Checks...")
run_command("./gradlew checkCode")
# 3. Push
print("\n3️⃣ Pushing to GitHub...")
run_command("git push")
print("\n✅ Successfully pushed to GitHub!")
if __name__ == "__main__":
main()