Procházet zdrojové kódy

Enhance action.yml with nomount input and logic

Add 'nomount' input to action and conditionally remove open redirect.
jimsterino98 před 2 týdny
rodič
revize
fdbcd22af7
1 změnil soubory, kde provedl 10 přidání a 0 odebrání
  1. 10 0
      .github/actions/susfs-patches/action.yml

+ 10 - 0
.github/actions/susfs-patches/action.yml

@@ -1,5 +1,9 @@
 name: apply susfs patches
 description: apply susfs patches
+inputs:
+ nomount:
+  description: 'nomount'
+  required: true
 
 runs:
   using: composite
@@ -123,3 +127,9 @@ runs:
      shell: bash
      run: |
       "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_KSU_SUSFS
+
+   - name: remove open redirect if nomount is enabled
+     if: inputs.nomount == 'true'
+     shell: bash
+     run: |
+      "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --disable CONFIG_KSU_SUSFS_OPEN_REDIRECT