From 363acee64fecf803063d3b31a27a9f0a722eb307 Mon Sep 17 00:00:00 2001 From: Der_Googler <54764558+DerGoogler@users.noreply.github.com> Date: Sat, 1 Jun 2024 19:02:53 +0200 Subject: [PATCH] update actions --- .github/workflows/ISSUE_TEMPLATE/config.yml | 8 -- .../workflows/ISSUE_TEMPLATE/submission.yml | 117 ------------------ .github/workflows/sync_build_deploy.yml | 11 ++ 3 files changed, 11 insertions(+), 125 deletions(-) delete mode 100644 .github/workflows/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/workflows/ISSUE_TEMPLATE/submission.yml diff --git a/.github/workflows/ISSUE_TEMPLATE/config.yml b/.github/workflows/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 7b5533b..0000000 --- a/.github/workflows/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,8 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: MMRL Telegram group - url: https://t.me/RepoLoader - about: Join the oficial MMRL group and discuss with the developers and other community member. - - name: Fox2Code Telegram group - url: https://t.me/Fox2Code_Chat - about: Join the Telegram group if you want to discuss with the community. diff --git a/.github/workflows/ISSUE_TEMPLATE/submission.yml b/.github/workflows/ISSUE_TEMPLATE/submission.yml deleted file mode 100644 index 4176447..0000000 --- a/.github/workflows/ISSUE_TEMPLATE/submission.yml +++ /dev/null @@ -1,117 +0,0 @@ -name: Module submission -description: Submit your module -title: '[Module]: ' -labels: - - module -body: - - type: input - id: update_to - attributes: - label: Update to - description: Vaild JSON or Git - placeholder: https://... - validations: - required: true - - type: input - id: id - attributes: - label: Module ID - placeholder: mkshrc - validations: - required: true - - type: input - id: name - attributes: - label: Name - placeholder: Systemless Mkshrc - validations: - required: true - - type: textarea - id: description - attributes: - label: Description - placeholder: My module does this and this - validations: - required: true - - type: dropdown - id: categories - attributes: - label: Categories - multiple: true - options: - - Tools - - Boot - - Coding - - Configurable - - Managment - - System - - Apps - - Gaming - - Other - - Magisk - - KernelSU - - APatch - - LSPosed - - Zygisk - - Xposed - - Performance Optimization - - Battery Life - - Customization - - Audio Enhancements - - Security - - Camera Enhancements - - SystemUI Mods - - Tweaks and Hacks - - Modifications for Root Apps - - System Fonts and Emojis - - Miscellaneous - - ROM-Specific Modules - - Gamepad and Controller Support - - App Additions and Features - - Adblocking and Hosts Files - - Navigation Bar and Gesture Customization - - Advanced Audio Mods - - Custom Kernels - - Boot Animation - - Privacy Enhancements - - type: input - id: raw_readme - attributes: - label: Raw README - placeholder: https://... - validations: - required: true - - type: input - id: icon - attributes: - label: Icon - placeholder: https://... - - type: input - id: cover - attributes: - label: Cover - placeholder: https://... - - type: textarea - id: screenshots - attributes: - label: Screenshots - description: Please every screenshot in a new line - value: |- - http://... - http://... - http://... - - type: input - id: donation - attributes: - label: Donation - placeholder: https://... - - type: input - id: support - attributes: - label: Support - placeholder: https://... - - type: markdown - attributes: - value: >- - This template was generated with [Issue Forms - Creator](https://issue-forms-creator.netlify.app) diff --git a/.github/workflows/sync_build_deploy.yml b/.github/workflows/sync_build_deploy.yml index c526e92..7a93ce7 100644 --- a/.github/workflows/sync_build_deploy.yml +++ b/.github/workflows/sync_build_deploy.yml @@ -10,6 +10,12 @@ on: branches: [ "master" ] workflow_dispatch: + inputs: + repo_user: + description: 'Repo Username' + repo_name: + description: 'Repo Name' + permissions: contents: write @@ -55,6 +61,11 @@ jobs: - name: Install dependencies run: pip install -r util/requirements.txt + - name: Add module + if: ${{ (github.event.inputs.repo_user != '') && (github.event.inputs.repo_name != '') }} + run: | + python util/cli.py github -u ${{ github.event.inputs.repo_user }} -r ${{ github.event.inputs.repo_name }} + - name: Sync if: ${{ env.IS_SYNC == 'true' }} run: |