Browse Source

Add 'kpm' input to action.yml for conditional execution

Added input parameter 'kpm' to the action configuration to enable conditional steps based on its value.
jimsterino98 1 week ago
parent
commit
0ce0ab26f1
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .github/actions/configs/action.yml

+ 6 - 0
.github/actions/configs/action.yml

@@ -1,5 +1,10 @@
 name: add configs
 description: add configs and disabling securities
+inputs:
+ kpm:
+  description: 'kpm'
+  required: true
+  
 
 runs:
  using: composite
@@ -12,6 +17,7 @@ runs:
      "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_TMPFS_POSIX_ACL
      
   - name: enable KPM support
+    if: inputs.kpm == 'true'
     shell: bash
     run: |
      "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_KALLSYMS