Ver Fonte

Refactor branch input handling in clone action

Updated the action to use a variable for the branch name.
jimsterino98 há 1 mês atrás
pai
commit
fcf8d2117e
1 ficheiros alterados com 1 adições e 6 exclusões
  1. 1 6
      .github/actions/clone-kernel/action.yml

+ 1 - 6
.github/actions/clone-kernel/action.yml

@@ -1,15 +1,10 @@
 name: 'Download Samsung Kernels'
 description: "initialize and download the samsung kernel"
 
-inputs:
-  branch:
-    description: 'Device Kernel branch'
-    required: true
-
 runs:
  using: composite
  steps:
    - name: Clone Kernel Source
      shell: bash
      run: |
-      git clone --depth 1 -b ${{ inputs.branch }} --single-branch https://github.com/WildKernels/Samsung_Kernels.git $CONFIG
+      git clone --depth 1 -b $BRANCH --single-branch https://github.com/WildKernels/Samsung_Kernels.git $CONFIG