mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-24 19:38:36 +09:00
✨ Ability to override patch apps from GH UI
This commit is contained in:
committed by
Nikhil Badyal
parent
11139217f8
commit
e740cbb07a
@@ -88,6 +88,10 @@ on:
|
||||
description: 'Run the build with tmate debugging enabled.'
|
||||
required: false
|
||||
default: false
|
||||
PREFERRED_PATCH_APPS:
|
||||
description: "Apps to be patched. Overrides any env set"
|
||||
required: false
|
||||
type: string
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.head_ref || github.run_id }}
|
||||
@@ -98,6 +102,7 @@ jobs:
|
||||
with:
|
||||
COMMIT_CHANGELOG: ${{ inputs.COMMIT_CHANGELOG }}
|
||||
DEBUG_ENABLED: ${{ inputs.DEBUG_ENABLED }}
|
||||
PREFERRED_PATCH_APPS: ${{ inputs.PREFERRED_PATCH_APPS }}
|
||||
secrets:
|
||||
ENVS: ${{ secrets.ENVS }}
|
||||
REDDIT_CLIENT_ID: ${{ secrets.REDDIT_CLIENT_ID }}
|
||||
|
||||
@@ -24,6 +24,10 @@ on:
|
||||
description: 'Run the build with tmate debugging enabled.'
|
||||
required: false
|
||||
default: false
|
||||
PREFERRED_PATCH_APPS:
|
||||
description: "Apps to be patched. Overrides any env set"
|
||||
required: false
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build-apk:
|
||||
@@ -40,6 +44,20 @@ jobs:
|
||||
run: |
|
||||
echo "${{ secrets.ENVS }}" >> .env
|
||||
|
||||
- name: Install Dot-Env
|
||||
if: ${{ inputs.PREFERRED_PATCH_APPS }}
|
||||
env:
|
||||
PREFERRED_PATCH_APPS: ${{ inputs.PREFERRED_PATCH_APPS }}
|
||||
run: |
|
||||
pip install python-dotenv
|
||||
pip install loguru
|
||||
|
||||
- name: Override Patch apps
|
||||
if: ${{ inputs.PREFERRED_PATCH_APPS }}
|
||||
env:
|
||||
PREFERRED_PATCH_APPS: ${{ inputs.PREFERRED_PATCH_APPS }}
|
||||
run: |
|
||||
python -m scripts.prefered_apps
|
||||
|
||||
- name: Inject Reddit Client ID
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user