Browse Source

Refactor branch input handling in action.yml

Updated input handling to use environment variable for branch.
jimsterino98 1 month ago
parent
commit
fd1fed73cd
1 changed files with 3 additions and 7 deletions
  1. 3 7
      .github/actions/configs/action.yml

+ 3 - 7
.github/actions/configs/action.yml

@@ -1,9 +1,5 @@
 name: add configs
 description: add configs and disabling securities
-inputs:
- branch:
-   description: 'which device kernel'
-   required: true
 
 runs:
  using: composite
@@ -24,11 +20,11 @@ runs:
      # 1. Determine which defconfig file needs to be patched based on the branch
      target_config=""
      
-     if [[ ${{ inputs.branch }} == SM-S938B* || "${{ inputs.branch }}" == "SM-S931B-Oneui8" ]]; then
+     if [[ $BRANCH == SM-S938B* || "$BRANCH" == "SM-S931B-Oneui8" ]]; then
          echo "Nothing to see here, moving on..."
-     elif [[ "${{ inputs.branch }}" == SM-S926B* ]]; then
+     elif [[ "$BRANCH" == SM-S926B* ]]; then
          target_config="$COMMON/arch/arm64/configs/s5e9945-bazel_defconfig"
-     elif [[ "${{ inputs.branch }}" == SM-A556* ]]; then
+     elif [[ "$BRANCH" == SM-A556* ]]; then
          target_config="$COMMON/arch/arm64/configs/s5e8845-bazel_defconfig"
      else
          target_config="$GKI_DEFCONFIG"