generated from j-hc/revanced-magisk-module
-
Notifications
You must be signed in to change notification settings - Fork 8
85 lines (80 loc) · 2.82 KB
/
configure-apps.yml
File metadata and controls
85 lines (80 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: RevPack Custom Configurator
on:
workflow_dispatch:
inputs:
enabled_apps:
description: >
Apps to BUILD (comma-separated section names from config.toml).
Use "all" to enable every app, or leave blank to keep current state.
required: false
default: ''
disabled_apps:
description: >
Apps to DISABLE (comma-separated). Always takes priority over enabled_apps.
required: false
default: ''
pack_apps:
description: >
Apps to bundle in RevPack (comma-separated section names).
Leave blank to bundle all enabled apps.
required: false
default: ''
pack_exclude_apps:
description: >
Apps to EXCLUDE from RevPack (comma-separated section names).
required: false
default: ''
trigger_build:
description: 'Trigger a CI build with this configuration'
required: false
default: true
type: boolean
pack_name:
description: 'Custom RevPack zip filename (without .zip). Leave blank to use config.toml value.'
required: false
default: ''
build_arch:
description: 'Architecture for the triggered build'
required: false
default: 'arm64-v8a'
type: choice
options:
- arm64-v8a
- armeabi-v7a
- x86_64
- universal
- all
concurrency:
group: configure-apps
cancel-in-progress: false
jobs:
configure:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Trigger CI build
if: ${{ inputs.trigger_build == true }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow run ci.yml \
--repo "${{ github.repository }}" \
--ref "${{ github.ref_name }}" \
--field build_arch="${{ inputs.build_arch }}" \
--field force_build=true \
--field from_configurator=true \
--field enabled_apps="${{ inputs.enabled_apps }}" \
--field disabled_apps="${{ inputs.disabled_apps }}" \
--field pack_apps="${{ inputs.pack_apps }}" \
--field pack_exclude_apps="${{ inputs.pack_exclude_apps }}" \
--field pack_name="${{ inputs.pack_name }}"
echo "CI build triggered — arch: ${{ inputs.build_arch }}"
echo " enabled_apps: ${{ inputs.enabled_apps }}"
echo " disabled_apps: ${{ inputs.disabled_apps }}"
echo " pack_apps: ${{ inputs.pack_apps }}"
echo " pack_exclude_apps: ${{ inputs.pack_exclude_apps }}"
echo " pack_name: ${{ inputs.pack_name }}"
- name: Skipped
if: ${{ inputs.trigger_build == false }}
run: echo "trigger_build=false — no build was triggered."