Ability to override patch apps from GH UI

This commit is contained in:
Nikhil Badyal
2024-04-17 17:09:04 +05:30
committed by Nikhil Badyal
parent 11139217f8
commit e740cbb07a
5 changed files with 49 additions and 0 deletions
+5
View File
@@ -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 }}
+18
View File
@@ -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: